Forum Discussion
problem in Rank Dax -need small modification
hello.i want to rank my city based on their sales.
i've write following dax and it seems ok
rankx = RANKX(ALLEXCEPT(Table1,Table1[Region],Table1[Year]),[sales],,DESC)
it is ok in table.but i need to show only Max and Min of (city in respect to their) Rank in Bar chart axis.so I have:
max of rank = maxx('Table1',[sales])the problem is that both of city appeared on bar char axis.
I've attached sample Dashboard and following pictures.
thank u
here is Dashboard Download link
6 Replies
- AnonymousNot applicable
dombarg,
Could you please post expected result in a table format or bar chart?
Regards,
Lydia- dombargHelper II
bar chart in picture is what i need,expect for the number of city code.
in bar chart in picture we want to show only 803 which is max.indeed,i want to how only max of city in each region in barh chart.
- AnonymousNot applicable
dombarg,
Please check the modified PBIX file.
https://1drv.ms/u/s!AhsotbnGu1NokzQJzGzRT-TTrL7-
Regards,
Lydia
- dombargHelper II
is there any way to calculate min of each group??
- AnonymousNot applicable
dombarg,
Please check the following modified PBIX file.
https://1drv.ms/u/s!AhsotbnGu1NokzxlG5iWHEUiNcKY
Regards,
Lydia