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
Context:
In Power BI, I want to create custom labels for my budget values. Currently, I'm using the following DAX measure:
label_Budget =
VAR BudgetAmount = [Budget_amount_total_no_Scope]
RETURN
CALCULATE(SWITCH(
TRUE(),
BudgetAmount > 0 && BudgetAmount < 1000, "€0",
BudgetAmount >= 1000 && BudgetAmount < 100000, "€0,.0K",
BudgetAmount >= 100000 && BudgetAmount < 1000000, "€0,.K",
BudgetAmount >= 1000000, "€0,,.#M") , ALLSELECTED())
My [Budget_amount_total_no_Scope] measure is defined as:
Budget_amount_total_no_Scope = SUM(daily_budget)
Issue:
The issue I'm facing is that the criteria in the label_Budget measure are applied to the total budget values, not per channel. As a result, a channel with a budget less than €1,000,000 gets the same label as a channel with a budget greater than €1,000,000 because the criteria are not applied individually to each channel.
Objective:
I want to modify my measure so that for every selected hierarchy level, the individual channel values are evaluated against the criteria in label_Budget.
Could someone help me adjust this measure so that it correctly applies the criteria at each individual channel level? Any guidance or suggestions would be greatly appreciated.
Hi @SilvandeGraaf without model and other details it is hard to provide possible solution.
Still, if you want to create and apply measure with all except logic, try using DAX function ALLEXCEPT on link
Proud to be a Super User!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 9 | |
| 8 |