Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have written a expression so that sale quantity not change week selection but still its keep on changing week selection
sum({<Year=,Num_Month=,NumWeekDay=, Week=,[Posting Date]=,Posting_Day=,PostingDateNum={'>=$(vMinDate_AMS11)<=$(vMaxDate111)'}>}[Sale Quantity]))
What wrong in this expression
maybe:
sum({<Year=,Num_Month=,NumWeekDay=, Week= ,Posting_Day=,PostingDateNum={'>=$(vMinDate_AMS11)<=$(vMaxDate111)'}>}[Sale Quantity]))
no
Hi,
Check your variables are changing based on the selection, if variables change the values of the expression will also change.
sum({<Year=,Num_Month=,NumWeekDay=, Week=,[Posting Date]=,Posting_Day=,PostingDateNum={'>=$(=vMinDate_AMS11)<=$(=vMaxDate111)'}>}[Sale Quantity]))
Can you attach the sample file?
Regards,
Jagan.
vMinDate_AMS=
num(date(AddMonths((vMaxDate)+1,-12),'DD/MM/YYYY'))
vMaxDate111
num(date(max([Posting Date]),'DD/MM/YYYY'))
vMaxDate=
date(max([Posting Date]),'DD/MM/YYYY')
vMinDate_AMS=
num(date(AddMonths((vMaxDate)+1,-12),'DD/MM/YYYY'))
vMaxDate111
num(date(max([Posting Date]),'DD/MM/YYYY'))
where VminDate_AMs used for calculating last 12 months data
I think in variable $(vMaxDate111) you have to change the expression.
I am assuming you have expression as max(Date), so you can write expression as max({<Week>}Date)
Make sure that you have the date in PostingDateNum the format same as in your variables