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
PbiCeo
Helper II
Helper II

TOPN filter dose not work as expected compared Top10 to Top15

Hello everyone,

 

I use TOPN filter  for "Com" on a matrix visual.

When I use Top10 like below:

Business Customers Com
ABCaa31.48
 

bb

30.45
 cc30.43
 dd30.38
 ee30.30
 ff20.10
 gg19.50
 hh19.20
 ii19.18
 jj19.14


When I use Top15 like below:

Business Customers Com
ABCaa31.48
 

bb

30.45
 cc30.43
 1130.43
 dd30.38
 ee30.30
 ff20.10
 2220.02
 gg19.50
 3319.40
 hh19.20
 ii19.18
 4419.15
 jj19.14
 5518.32

 

I was expecting Top1 - 10 of Top15 result would be the same.
How should I correct it?
Thanks,
Vladi

4 REPLIES 4
v-jayw-msft
Community Support
Community Support

Hi @PbiCeo ,

 

I can't see any points through the screenshot, please show more information. Something like sample data and the formula you are using would be helpful.

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

@v-jayw-msft 

Thank you for your reply.
Alternatively I tried to use DAX measure, Rankx with condditions using filter to then correctly filter by Topn filter, but it retuns always only 1.

RANKX(FILTER('table', 'table'[business] = 'table'[business] && 'table'[customer] =
'table'[customer]), SUMX('table', 'table'[com]))

What is wrong?
Appreciate your help, thanks in advance.
amitchandak
Super User
Super User

@PbiCeo has any other filter changed. I did not saw customers 11 and 22 in the first list. Can you check that.

 

or

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Hello @amitchandak ,
Thank you for your reply.
Alternatively I tried to use DAX measure, Rankx with condditions using filter to then correctly filter by Topn filter, but it retuns always only 1.

RANKX(FILTER('table', 'table'[business] = 'table'[business] && 'table'[customer] =
'table'[customer]), SUMX('table', 'table'[com]))

What is wrong?
Appreciate your help, thanks in advance.

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.