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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ashaikh
Helper III
Helper III

RANKX on a column when I have legend for column chart

Hello,

 

I am creating a column chart. The column chart includes Location on Axis, Count of Ticket Number on Value, and Priority on Legend.  It looks like this - 

1.PNG

 

 

2.PNG

  

 

Here I want to view just Top 10 location based on Ticket Number. I can use below formula for that.

 

RANK LOCATION TICKET = IF(NOT(ISBLANK(tblNORTHWELL[TICKET COUNT])), RANKX(FILTER(ALL(tblNORTHWELL[Location]), tblNORTHWELL[TICKET COUNT]), tblNORTHWELL[TICKET COUNT], , ,Skip), BLANK())

 

This formula works perfectly when I don't Priority in Legends but when I include Priority it shows me all the records.

Can you please suggest a solution to include that.

 

Thanks

Abdul

 

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@ashaikh

 

Hi, Could try using TopN in Visual Filter.

 

TOPN in Visual Level FilterTOPN in Visual Level Filter




Lima - Peru

View solution in original post

1 REPLY 1
Vvelarde
Community Champion
Community Champion

@ashaikh

 

Hi, Could try using TopN in Visual Filter.

 

TOPN in Visual Level FilterTOPN in Visual Level Filter




Lima - Peru

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.