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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Rankx break when used in Visual Filter

I have a Rankx funtion written as below;


Rank=
var __Top =
RANKX(FILTER(ALLSELECTED('PRODUCT Ref'[Value]),NOT(ISBLANK([Metric]))),[Metric],,DESC))
Return
IF(__Top <= VALUES(TopBottomNo[Value]), __Top , BLANK()) - I use this to show only top 10 ranks.
 
and it reurns as expected: 1,2,3,4,5,6,7,8,9,10
elroi_3-1626463042789.png

 

 
The problem is that, when I try to Filter matrix to "Show items when the value is not blank" I get the last number repeating twice which is incorrect; 1,2,3,4,5,6,7,9,10,10
 
elroi_0-1626462922932.png

 

elroi_4-1626463091595.png
 
Please can someone help with this?

 

1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data in usable format (not as a picture) 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.