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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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