Reply
mangal999
Frequent Visitor
Partially syndicated - Outbound

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

Syndicated - Outbound

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

Syndicated - Outbound

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

Syndicated - Outbound

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/

Syndicated - Outbound

@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.

Syndicated - Outbound

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

Syndicated - Outbound

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

 

Regards,

Preeti_Yadav
Resolver I
Resolver I

Syndicated - Outbound

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

Syndicated - Outbound

No Preeti, TopN from filter is not working.

avatar user

Helpful resources

Announcements
FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)