Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, can anyone tell me what i am doing wrong in this expression please? i can't get it working..
sum({<[Reporting Week]={'>=$(vLWRepWeek)<=$(vLWRepWeekEnd)'}>} [Revenue Loss])
Thanks
You need to use Reporting Date for the comparison and also empty selections in Reporting Week:
sum({<[Reporting Week]=, [Reporting Date]={'>=$(=date($(vLWRepWeek)))<=$(=date($(vLWRepWeekEnd)))'},[Reason Group] = {'Upgrade'}>} [Revenue Loss])
You should be using double quotes instead of simple quotes.
sum({<[Reporting Week]={">=$(vLWRepWeek)<=$(vLWRepWeekEnd)"}>} [Revenue Loss])
Whenever something isn't working for you try testing with a simpler version, like using a single variable, using a hardcoded value, etc.
I would try using double quotes and intersection
sum({<[Reporting Week]={">=$(vLWRepWeek)"}*{"<=$(vLWRepWeekEnd)"}>} [Revenue Loss])
Hi, thanks for the reply. although that still didnt work.
My variables are :
LWRepWeek
=Date([Reporting Week Start]-7)
LWRepWeekEnd
=Date([Reporting Week End]-1)
and if i look at the variables in a text box i get the correct dates so i know there isnt a problem with the variables.
Hi all, unfortunately i still can't get this working.
I have attached a sample. Would anyone be able to take a look for me please?
Thanks
You need to use Reporting Date for the comparison and also empty selections in Reporting Week:
sum({<[Reporting Week]=, [Reporting Date]={'>=$(=date($(vLWRepWeek)))<=$(=date($(vLWRepWeekEnd)))'},[Reason Group] = {'Upgrade'}>} [Revenue Loss])
Thanks Gysbert