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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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