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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.