Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
rbalza
Helper III
Helper III

Range Values for Dial Gauge - DAX

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

1 REPLY 1
SivaMani
Resident Rockstar
Resident Rockstar

@rbalza,

 

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"
    )

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.