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
Hi Power Bi Friends,
Hope you guys having an awesome day. I was wondering how to do range values that will be use for dial gauge in DAX. For example, I have two measures [Total Sales] and [Budget Allocation].
Ranges will be like this
Range 1 = if total sales is 80% below budget allocation
Range 2 = if total sales is in between 80% and 90% of budget allocation
Range 3 = if total sales is greater than the budget allocation
Try the below DAX in a measure. Hope it matches with your requirement.
Ranges =
VAR __Per =
DIVIDE ( [Total Sales], [Budget Allocation] )
RETURN
SWITCH (
TRUE (),
__Per < 0.8, "Range1",
__Per >= 0.8
&& __Per <= 0.9, "Range2",
"Range2"
)
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 |
|---|---|
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 17 | |
| 10 | |
| 7 | |
| 6 |