My goal is to Rank Total Turnover By Customer By Week.
I have this as a calculated column:-
=RANKX(ALL(ASC_TBI_TBL[Customer]),CALCULATE([Total Turnover 2023],ALLEXCEPT(ASC_TBI_TBL,ASC_TBI_TBL[Customer])),,DESC)
My calculated column doesn't work quite as expected. If you select single week number (say week number 1) it doesnt give ranking results 1,2,3 etc.
It does work ok if all weeks are selected. Somehow I need to add a filter on week to see result for individual week.
In Table, ASC_TBI_TBL, I do have column named Week. Week contains numbers 1 to 52.
How can I add FILTER to my calculated column to give the desired output?
Thanks in advance,