Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Andy23
Regular Visitor

TopN and others issues

Greetings,

 

I wanted to ask for some help with creating topn and others. I have been watching and trying to implement via the following tutorial (https://www.youtube.com/watch?v=yGFcCbXn_g0&t=1439s) a topn and others solution to my sales data.

 

  • I was able to create the pseudo table with an "others" category per the video's guidance
  • I have sales as a Numeric Field called "Total" in my imported data. Given when creating a new measure I cannot use Total in the next steps, I created a new measure where: Total_Sales = SUM (Table1[Total])
  • I then created another measure per the video that would do the topn filtering but the function does not end up working in filtering the sum of the top 3 names, instead it returns a total sum of the entire dataset  ....
    TOP N Sum Sales =
    CALCULATE(
        [Total_Sales],
        TOPN(
            3,
            'Pseudo_Rep_Table',
            [Total_Sales]
        )
    )
     
    Is there something that I missed or did I make a mistake?

    Thank you for any suggestions!

 

 

 

 

1 REPLY 1
aj1973
Community Champion
Community Champion

hi @Andy23 

This 

aj1973_0-1676236579046.png

Should Table1, that's where you applied your SUM

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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