cancel
Showing results for 
Search instead for 
Did you mean: 
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
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors