Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

DAX Percentage Range

I'm new to DAX so any help would be greatly appreciated. I have created the Dax formula below. It works but doesn't include anyone that's attendance is exactly 93%. It is excluding these from the tab...
  • kpost's avatar
    kpost
    3 years ago

    Yes, there's a difference between the actual underlying numerical value and the way it's displayed (Format). 

    It sounds like you need to round the value to the nearest 0.0001 before displaying it in the chart.

    here's the ROUND function, and an example of what the measure or new column should look like.  All you need to do is put in the integer corresponding to how many digits after the decimal point you want to round, (sounds like 4 is the right number for you, 4 places after the decimal).

    https://learn.microsoft.com/en-us/dax/round-function-dax

    Statistical Attendance Presence Below Target % =

    var attendance = ROUND('MIS: Attendance'[Statistical Attendance Presence %] , <put integer here>)
    return
    IF(attendance >= 0.90 && attendance <= 0.93, attendance, BLANK())


    //Mediocre Power BI Advice, but it's free//