Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi PowerBi Friends,
I have a table with TopN based on two different tables and I used crossjoin function to get its rank.
Now, I would like to combine/add things together that have the same entity/name.
As you can see here on the snapshot, I have the same group name but lies on a different TopN group and I wanted to combine or add this together so that it will be on its rightful TopN. Attached is my pbix file and the measures that I used. Appreciated your time doings this. Thanks!
https://www.dropbox.com/s/xszrjtxt9oo8k76/sampledata.pbix?dl=0
Jihwan Invoice Total by Group =
SUMX (
KEEPFILTERS (
FILTER (
ALLSELECTED(FactFinalisedInvoicesDetailed[Invoice Type] ),
COUNTROWS (
FILTER (
'Customer Rank',
[Jihwan Rank by Invoice Type] >= 'Customer Rank'[Min Rank]
&& [Jihwan Rank by Invoice Type] <= 'Customer Rank'[Max Rank]
)
) > 0
)
),
[Total Invoice]
)This is the rankx between two different tables.
Jihwan Rank by Invoice Type =
RANKX(CROSSJOIN(ALL(FactFinalisedInvoicesDetailed[Invoice Type]) ,ALL(GroupedFinalisedInvoices[Group Owner]) ), [Total Invoice], , DESC)
Solved! Go to Solution.
If I'm understanding correctly, you want to rank by Group Owner so you should leave out the CROSSJOIN.
Jihwan Rank by Invoice Type =
RANKX (
ALL ( GroupedFinalisedInvoices[Group Owner] ),
CALCULATE ( [Total Invoice], ALLSELECTED ( FactFinalisedInvoicesDetailed ) ),
,
DESC
)
If I'm understanding correctly, you want to rank by Group Owner so you should leave out the CROSSJOIN.
Jihwan Rank by Invoice Type =
RANKX (
ALL ( GroupedFinalisedInvoices[Group Owner] ),
CALCULATE ( [Total Invoice], ALLSELECTED ( FactFinalisedInvoicesDetailed ) ),
,
DESC
)
@AlexisOlson works like a charm. This arises me on another concern 🙂 If you don't mind to have a look at it? Thanks very much for your time taking this. Cheers!
Oh wow @AlexisOlson .. thats freakin on point. Will have to try this and let you know the result. Cheers!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 23 | |
| 16 | |
| 15 | |
| 14 | |
| 8 |