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

Top N issue

I am trying to get top 5  part number by ATS_Score since Part number is whole number,I am not able to do do top 5. later tries buy domain, still doesnt work. 

Please help

 

   

pmadam_1-1661988466871.png

 

 

1 ACCEPTED SOLUTION

No change. Im i doing something wrong.

 

pmadam_0-1661996542498.png

 

View solution in original post

5 REPLIES 5
v-xiaotang
Community Support
Community Support

Hi @pmadam 

Thanks for reaching out to us.

>>I am trying to get top 5  part number by ATS_Score

you can try this measure, then put it into visual-level filter,

RANK = RANKX( SUMMARIZE(ALL('Table'),'Table'[Domain],'Table'[Part Number]) , CALCULATE( SUM('Table'[ATS_SCORE]),ALLEXCEPT('Table','Table'[Domain],'Table'[Part Number])),,DESC,Dense)

vxiaotang_0-1662630665308.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@pmadam , You need to try measure like

 

2 column top N = CALCULATE([Measure], TOPN(10, SUMMARIZE(ALLSELECTED('Table'), 'Table'[Domain], 'Table'[Part Number]), [Measure],DESC),VALUES('Table'[Domain]), VALUES('Table'[Part Number]) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

No change. Im i doing something wrong.

 

pmadam_0-1661996542498.png

 

@pmadam , The measure you are using for TOPN seems to me using +0 or handing blank, remove any such code and use this measure as a visual level filter and check for non blank

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak ,

 

Thanks for the reply Amit but its still not working. 😞

 

pmadam_0-1662004057664.png

 

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.