Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
in my pivot table I have customer lines and column years. I would like to make a descending sorting on the sales on the greatest year selected.
by putting {2018} it's ok but how to set the max date selected :
sum({$<[DateFacture.autoCalendar.Year]={2018}>} [Sales]))
Regards
Try {"$(=Max(Year))"}
Hi Serge,
Try this:
sum({$<[DateFacture.autoCalendar.Year]={"$(=Max(Year))"}>} [Sales])
Jordy
Climber
thanks for your help, but when i replace {2018} by {"Max(Year)"} -->
sum({$<[DateFacture.autoCalendar.Year]={"Max(Year)"}>} [Sales])
I dont have the order by by the max year selected (2016 / 2017 / 2018) and i dont have all register of years selected
Thanks
Hi Serge,
I updated the function. This function will automatically select the maximum year. When you select 2016 & 2017, it will select 2017, because that is then currently the max year. For this you don't need the order by.
Jordy
Climber
Hi Serge,
This is indeed something different then I had in mind. But pivot tables are sorted, and only sorted based on the first column. When you use Customer names as the first one, it will always sort based on the Customer names.
When you want to achieve this, you should use a normal table with your sort.
Jordy
Climber