Dear All,
Here below the data that I want to summarize in my report. For each store I have 2 indicators every month:
- active number: it tells if at the end of the month a store is active. If active it is equal to 1, if not active it is 0
- sales: the amount of monthly sales per month
Besides I have two dimension: store, month (eventually also the year)
Here some data useful as example:
month 1 2 3 4 5 6 7 8 9 10 11 12
active number:
store_1 1 1 1 1 1 1 1 1 1 1 1 1
store_2 1 1 1 1 1 1 1 1 0 0 0 0
store_3 0 0 0 1 1 1 1 1 1 1 1 1
month 1 2 3 4 5 6 7 8 9 10 11 12
sales:
store_1 1 2 1 2 2 1 2 3 1 4 4 5
store_2 3 3 2 4 3 1 2 2 0 0 0 0
store_3 0 0 0 4 2 2 1 2 6 5 8 9
Suppose I'm in december (month 12) and I want for the active store (store 1 and store 3) the YTD amount of sales, that is:
sales
store_1 28
store_3 39
With WebI I'm able to do this using Last() function as follow: =Last(StoreForEach(Month))
It permits me to filter those stores that in december are active.
With DeskI I'm able to do this only utilizing a Where Month=12. Instead I would like to automatize the process inputing a prompt with a filter on the Month = 12.
I hope to have explained well my situation.
Thank you.