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