Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I've got a pivot table with dimensions: Week and Weekday for a selected year. I have to show the sales for each week and week day for the selected year, and for the previous year.
I've got a calendar that gives me the fields week number and weekday and a fact table with the sales. In the calendar, for each date I also have the same date for the same week and weekday for the previous year.
I can get it work for the current year, but when I write the expression for the last year, I get 0 for all.
Expression for current year: sum(ImporteSinIVA)
Expression for last year: Sum({<Año, Mes, Trimestre, DiaSemana, Semana, Fecha, MismoDiaAA={'$(vMismoDiaAA)'}>}ImporteSinIVA).
Here, variable vMismoDiaAA = Date(Max(MismoDiaAA), 'DD/MM/YYYY'). The field "MismoDiaAA" is in the calendar, and it's calculated for each day, as stated above. The variable is defined with the sign "=" at the beginning.
I have attached the table should it help.
Any idea?
Hi, does it work if you use an = in the variable in the set analysis (before the varibale name)..
MismoDiaAA={'$(=vMismoDiaAA)'}>}ImporteSinIVA)
?
Thank you for that link.
I downloaded the latest version and tried the double quotes, but it's not working.