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

Comparison of Date fields from 2 queries-Error #CONTEXT

$
0
0

Hi,

 

Currently I am working on BI 4.0. I am developing a report based on 2 OLAP Connections. Lets say, "Query 1" and "Query 2" are 2 BI Queries.

 

There is an object "Calendar Day" in Query 1.

In Query 2 there is a prompt, that asks for Calendar Week from the user and has 2 calculated objects, "Week Start Day" and "Week End Day", based on that calendar week number(Eg: 02.2014 will indicate the 2nd week of 2014).

 

Note: "Calendar Day", "Week Start Day" and "Week End Day" are all Date type fields.

 

In my report, in a particular cell, I want to restrict the measure value, say TotalAmt:

TotalAmt = Sum([Query 1].Amount where [Query 1].[Calendar Day] Between ([Week Start Day];[Week End Day])

 

But, this formula throws an "#CONTEXT" error.

 

However, the formula works Fin when I run the formula for hardcoded dates, for example:

TotalAmt = Sum([Query 1].Amount where [Query 1].[Calendar Day] Between ('1'/1/2014';'7/1/2014')

 

 

I am not getting a work around for the issue.

 

Please help !

 

 

Thanks,

Amrita


Viewing all articles
Browse latest Browse all 5402

Trending Articles



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