Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have two tables:
Fact:
And 'People':
The tables are related by Person.
How to calculate the dynaming ranking of TotalSales measure:
TotalSales = SUM('Fact'[Sales])So that the Ranking responds to the external slicers but not to the rows filter of the table:
The measure I'm trying is the obvious:
Ranking = RANKX(ALLSELECTED('Fact'),CALCULATE([TotalSales]))And many other similar combinations that return wrong results.
Hi @webportal ,
You may create measure like DAX below.
Ranking =
RANKX (
FILTER (
ALLSELECTED ( Fact ),
Fact[Place] = MAX ( Fact[Place] )
),
CALCULATE ( SUM ( Fact[Sales] ) ),
,
DESC,
Skip
)
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I get all 1, this DAX is just bull**bleep**, isn't it?
I mean, 48 hours to create a ranking??? And still NO GO!?!
@webportal , all selected should have work. remove the person from person table and use it person id from fact and check
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 |
|---|---|
| 93 | |
| 69 | |
| 50 | |
| 40 | |
| 39 |