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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
rbalza
Helper III
Helper III

Grouping based on Topn - Not adding together

Hi PowerBi Friends,

 

I have a table and grouped it based on TopN. However, the same entity (company name) is splitting into other TopN where it shouldn't be. e.g Company XYZ was on Top10 and also showing in the Top50 as well.  It should be summed together and only be placed on 1 particular TopN. How can I do this? Attached is my measure.

 

Total Invoice By Rank Group = 
CALCULATE(
        [Total Invoice],
        FILTER(
            FactFinalisedInvoicesDetailed,
            COUNTROWS(
                FILTER(
                    'Customer Rank',
                    [Rank by Group Owner and Invoice Type] >= 'Customer Rank'[Min Rank]
                        && [Rank by Group Owner and Invoice Type] <= 'Customer Rank'[Max Rank]
                    )
                ) > 0        
            )
        ) 

rbalza_1-1619946730582.pngrbalza_2-1619946753848.png

 

1 ACCEPTED SOLUTION
daxer-almighty
Solution Sage
Solution Sage

Hi @rbalza 

 

It's kind of obvious that if something is in TOP10, it'll be in TOP50 as well when you use the same ranking measure. This is what one would even expect and one would be very perplexed if that was not the case (a mistake coming to mind immediately). Also, there's no clear meaning to this sentence: "It should be summed together and only be placed on 1 particular TopN." In which "particular TOPN"?

View solution in original post

2 REPLIES 2
daxer-almighty
Solution Sage
Solution Sage

Hi @rbalza 

 

It's kind of obvious that if something is in TOP10, it'll be in TOP50 as well when you use the same ranking measure. This is what one would even expect and one would be very perplexed if that was not the case (a mistake coming to mind immediately). Also, there's no clear meaning to this sentence: "It should be summed together and only be placed on 1 particular TopN." In which "particular TOPN"?

Hi @daxer-almighty , I wanted to group this based on the TopN given. Apologies for the confusing sentences.

rbalza_0-1619954952718.png

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Top Solution Authors