Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
I'm trying to write a measure that will give me a specific value based on the result of another measure. I have the following measure "NON-PM Score = DIVIDE([NON-PM On Time], [NON-PM Total])" that gives me a percentage. Based on this percentage I am trying to write a measure that will give me a number 1-5. This is what I was trying to use but it doesnt not work:
What I basically need is for the measure for show a
5: 95% and higher
4: 90 - 94.9%
3: 80 - 89.9%
2: 70 - 79.9%
1: anything less than 70%
Thank you in advance!
@am_i_really Hard to say why it isn't working. You could simplify it and get better performance this way. Perhaps provide sample data and a description of what is going wrong.
Measure =
VAR __Measure = 'Measures Table'[NON-PM Score]
SWITCH(
TRUE(),
__Measure < .7, "1",
__Measure > .69 < .80, "2",
__Measure > .79 < .90, "3",
__Measure > .89 < .95, "4",
"5"
)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
24 | |
10 | |
10 | |
9 | |
6 |