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
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
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.