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

Compare dates without merging

$
0
0

Hello,

 

I have two queries. Query 1 contains several dimensions and measures, with date being one of the dimensions. Query 2 gives me a single dynamic date.

 

Using the results from Query 1 as a table, I need to add an IF variable that compares the date in each record to the single dynamic date from Query 2.

 

So if Query 2 gave me 12/1/2015, and my results have several dates before and after, I just need a binary identifier to tell me which records have a greater date.

 

I cannot feed the dynamic date as a filter, because I need historic dates for comparison reasons.

 

I also don't think I can/should merge on anything, as there are no common fields other than date.

 

Is there a syntax I can use to make the single date stand on its own? Or perhaps a way I can tell my IF variable to look at the value from a separate table? Any other way to do this without editing the SQL?

 

I appreciate any help!!!


Viewing all articles
Browse latest Browse all 5402

Trending Articles



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