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

Top 3 records

Hello Everyone,

I am looking for a solution where I want to display top records count wise. Can you please help me. I have posted data below.

 

Product NumberProduct NameSub ProductCount of Sub Product
80.3.1Capacitor Aluminum PolymerCircuit Breaker Accessories7
80.6.1Capacitor AluminumCircuit Breakers5
80.3.3.2Capacitor Ceramic MultilayerFuse Accessories4
80.4.1Capacitor Ceramic Single LayerFuses3
80.5.1.2Capacitor Electric Double Layer- SupercapsPTC Resettable Fuses3
80.5.1.3Capacitor Feed ThroughPTC Resettable Fuses2
80.6.1Capacitor FilmSurge Suppressors2
80.5.1.3Mica CapacitorsThyristor Surge Protection Devices1
80.4.1Capacitor NiobiumSpeech Network1
1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

Top N filter in the filter pane should work:

Count Sub-Product = 
SUM(SampleTable[Count of Sub Product])

Result.JPG

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

7 REPLIES 7
PaulDBrown
Community Champion
Community Champion

Top N filter in the filter pane should work:

Count Sub-Product = 
SUM(SampleTable[Count of Sub Product])

Result.JPG

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Ashish_Mathur
Super User
Super User

Hi,

Drag Sub product to the row labels of the matrix visual and write these measures

Subproduct count = sum(Data[Count of Sub Product])

Top 3 Subproduct count = calculate([Subproduct count],top(3,all(data[sub product]),[Subproduct count]),values(data[sub product]))

Hope this helps.

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur , SubProduct column is string type so we can not sum the column. I have tried with count as well but its not working.

Hi,

In the Query Editor, change the Data type of that column to Numeric.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
mangal999
Frequent Visitor

Hello Everyone, Can someone provide the solution on my request. Thank in advance.

 

Regards,

Preeti_Yadav
Resolver I
Resolver I

Hi,

 

You can try to get top 3 from the Filters.

The following example shows the top 3 name by measure.

Preeti_Yadav_0-1631872574968.png

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

 

Best Regards,

Preeti

No Preeti, TopN from filter is not working.

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.