Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dombarg
Helper II
Helper II

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 uranking problem.JPG

 

 

here is Dashboard Download link

6 REPLIES 6
v-yuezhe-msft
Employee
Employee

@dombarg,

Please check the following modified PBIX file.

https://1drv.ms/u/s!AhsotbnGu1NokzxlG5iWHEUiNcKY

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
dombarg
Helper II
Helper II

is there any way to calculate min of each group??

v-yuezhe-msft
Employee
Employee

@dombarg,

Could you please post expected result in a table format or bar chart?

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.

@dombarg,

Please check the modified PBIX file.

https://1drv.ms/u/s!AhsotbnGu1NokzQJzGzRT-TTrL7-

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

thank u .it is very nice and cool an simplebut there is still a problem.

when i change maxx with minx,it doesn't work and the result wont changed

indedd,i need to show both max and min in axis bar.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.