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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
hi, @AlexXandyr
The problem arises with this approach. When you try to get Top30 and then get Top0 (which is essentially all data minus "Other"), subtracting Top0 from Top30 doesn't give you the top 1 to 30 results.
Instead, you can simplify the logic by directly filtering the top 30 results excluding the "Other" category.
for example,
Top1to30AmountTEST =
VAR Top1to30 =
CALCULATETABLE(
TOPN(
30,
VALUES('Income_2018->'[PartyGrouping]),
CALCULATE( SUM('Income_2018->'[Local Amount (correct sign)]),
'Income_2018->'[PartyGrouping] <> "Other" )
),
'Income_2018->'[PartyGrouping] <> "Other"
)
RETURN
CALCULATE(
'Income_2018->'[Income],
Top1to30
)
Proud to be a Super User!
Hello,
Thank you for the reply. However this seems not to work on my data. It doesnt filter top 30 and only gives me same value for all customers.
Now the information looks like this, where my test measure excludes Other but give me more data than just top 1-30
can you provide sample pbix or demo data?
Proud to be a Super User!
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 |
|---|---|
| 58 | |
| 45 | |
| 42 | |
| 20 | |
| 18 |