Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 5402

Compare dimension date value from 2 queries in the WEBI report

$
0
0

Hi,

 

I have 2 queries from same universe from different context.

 

Query 1 - History table

H_Prod#,H_cust#,h_salesorderno,h_salesorderlineno,h_customerorderno,H_shipdate,h_Qty,h_Amount

 

Query2 - Current Table

Prod#,cust#,salesorderno,salesorderlineno,customerorderno,shipdate,Qty,Amount


Need the report


Prod#,cust#,salesorderno,salesorderlineno,customerorderno,shipdate,h_shipdate,Difference(shipdate-h_shipdate)

 

I tried merging all the dimensions in the queries, checked 'avoid duplicate row aggregation' and 'Extend merge dimension values'

 

By this

 

when there is no change in shipdate for history and current table it comes in one row, but when the date are changed it comes in two row, so the difference is always zero.

 

Date was changed from 6/25 - history table to 6/18 current table for SOlineno - 10, but shows in 2 separate rows

 

Prod#,cust#,Salesorderno,SOLineno,Currentshipdate,historyshipdate

P1,C1234,SO1234,10,6/18/2015,6/18/2015

P1,C1234,SO1234,10,6/25/2015,6/25/2015

P1,C1234,SO1234,20,6/25/2015,6/25/2015

P1,C1234,SO1234,30,6/27/2015,6/27/2015

P1,C1234,SO1234,40,6/29/2015,6/29/2015

 

Not sure what is missing.

 

thanks.


Viewing all articles
Browse latest Browse all 5402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>