Forum Discussion
Top 50 Rank
- 8 years ago
That's correct.
This is because rank was created with two columns, [location_name] and [location_city].
When you select a city, it does the rank considering the two columns. To work as you wish, consider only the [location_name] column in the rank and put the [location_city] column as the filter.
To do this, change the two measures.
Rank MonthPrevius = IF ( HASONEVALUE (ft_SALES [location_name]); RANKX (ALL (ft_SALES [location_name]); [xMonthPreviusToDate_TABC] ;; DESC; DENSE)) Rank MonthActual = IF ( HASONEVALUE (ft_SALES [location_name]); RANKX (ALL (ft_SALES [location_name]); [xMonthActual_TABC] ;; DESC; DENSE))Please try and test using it. And please mark the right reply as answer if your issue has been resolved, otherwise, please feel free to ask if you have any other issue.
Best Regards,
Rfranca
That's correct.
This is because rank was created with two columns, [location_name] and [location_city].
When you select a city, it does the rank considering the two columns. To work as you wish, consider only the [location_name] column in the rank and put the [location_city] column as the filter.
To do this, change the two measures.
Rank MonthPrevius = IF (
HASONEVALUE (ft_SALES [location_name]);
RANKX (ALL (ft_SALES [location_name]);
[xMonthPreviusToDate_TABC] ;; DESC; DENSE))
Rank MonthActual = IF (
HASONEVALUE (ft_SALES [location_name]);
RANKX (ALL (ft_SALES [location_name]);
[xMonthActual_TABC] ;; DESC; DENSE))Please try and test using it. And please mark the right reply as answer if your issue has been resolved, otherwise, please feel free to ask if you have any other issue.
Best Regards,
Rfranca
Rfranca, thank you again ... you're my hero! ~db