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
wiki
Frequent Visitor

Filter not working on computed rank

Hi,

 

I am struggling with filtering data after computing rank.

Basically I have data of various objects which belong to applications.

 

I wanted to rank the applications based on the number of objects belonging to each Application.

Here are my AppRank and Total Objects measures.

AppRank = CALCULATE(RANKX(All('Promotes-All-P'[App]); 'Promotes-All-P'[Total Objects];;DESC;Dense))

Total Objects = COUNTA('Promotes-All-P'[App])

Now, I want to compute the total objects belonging to the top 10 apps only,

 

Objects for TopN App = SUMX(FILTER('Promotes-All-P'; [AppRank] <= 10); [Total Objects])

 

The problem is that the filter [AppRank] <= 10) is not working and I still get the same value as Total Objects.

Apparently, all the rows has AppRank value of 1. It is a bit strange because I can see the correct ranks in the table visual and even the correct object counts.

 

Could anybody help me with it please?screen.png

 

 

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @wiki,

 

You can try to use below formual if it works on your side.

 

Objects for TopN App = COUNTAX(FILTER(ALL('Promotes-All-P'); [AppRank] <= 10); 'Promotes-All-P'[App])

 

If above is not help, please share us a sample file to test.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.