I have a Pivot Table in which I show 7 days in the horizontal dimension. If is there any date selected, the first day will be this one selected, and the others will be the 6 following days. In case of no date selected, the first day of the dimension will be today(), and the others will be the 6 future days.
So, in order to sum what I need in each of these days of my calculated dimension, I'll thought about using a variable with parameters.
My Date dimension is a variable (vDinamic_Dimension) as following:
I want to know what do I need to use inside de variable vOrder_Quantity, in order to sum the days for each value of the vDinamic_Dimension. I thought about something like this, but it's not working and returns null values.