Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All
i cant get something working.
If a user was to select a fiscal year of 2016, then i want the text box to show the sum(sales) but for the previous year but the following month based on todays date.
=Sum({<[Fiscal Year]= {$(=max([Fiscal Year])-1)}, Month={$(=Date(Date#(Month(today())+1, 'MM'),'MMM'))}>}[Sales])
Can anyone help?
Try this:
=Sum({<[Fiscal Year] = {$(=Max([Fiscal Year])-1)}, Month={'$(=Num(Month(AddMonths(Today(), 1))))'}>} Sales)
May be this:
=Sum({<[Fiscal Year] = {$(=Max([Fiscal Year])-1)}, Month={'$(=Month(AddMonths(Today(), 1)))'}>} Sales)
did you check this?
Hi
Try like this
=Sum({<[Fiscal Year] = {$(=Max([Fiscal Year])-1)}, Month={'$(=Month(AddMonths(Today(), 1)))'}>} Sales)
that doesnt work but i think its because my month field is in the number format. i.e.
1
2
3
4
5
etc
Try this:
=Sum({<[Fiscal Year] = {$(=Max([Fiscal Year])-1)}, Month={'$(=Num(Month(AddMonths(Today(), 1))))'}>} Sales)
Hi
Then Change Month to Number by using Num() function
Hi
Sunny is too fast to reply
Please follow sunny suggestion.