Forum Discussion
Month name not sorting correctly despite Sorting by another column
- 2 years ago
Hi fb198 - as per my understanding card visual doesn't respect the custom sort order applied to your month column. Even though you've already sorted your MonYear column using the Sort_Index column, the card visual might still be picking the first value alphabetically instead of following the custom sort order.
create a measure to get the card visual as per monthname order instead of alphabitical
Selected Month =CALCULATE(FIRSTNONBLANK('DateTab'[MonthYear], 1),FILTER('Datetab','DateTab'[MonthNumber] = MINX(ALL('Datetab'), 'DateTab'[MonthNumber])))In above measure i have month number to sort it , in your case you can change it to sortindex column or monthnumber also fine.Hope it works.
Hi fb198 - as per my understanding card visual doesn't respect the custom sort order applied to your month column. Even though you've already sorted your MonYear column using the Sort_Index column, the card visual might still be picking the first value alphabetically instead of following the custom sort order.
create a measure to get the card visual as per monthname order instead of alphabitical