Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Solved! Go to Solution.
Hi , @shanerolle
Take a try to change your measure as below:
Condition =
VAR Percent_ =
[Expense Measure] / SUM ( GLBDWithFYEMO[Budget] )
RETURN
IF (
LEFT ( SELECTEDVALUE ( 'Table'[Account] ) & "", 1 ) <> 5,
SWITCH (
TRUE (),
Percent_ < .9, 1,
Percent_ >= .9
&& Percent_ < 1, 2,
Percent_ >= 1, 3
),
SWITCH (
TRUE (),
Percent_ < .9, 3,
Percent_ >= .9
&& Percent_ < 1, 2,
Percent_ >= 1, 1
)
)Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi , @shanerolle
Take a try to change your measure as below:
Condition =
VAR Percent_ =
[Expense Measure] / SUM ( GLBDWithFYEMO[Budget] )
RETURN
IF (
LEFT ( SELECTEDVALUE ( 'Table'[Account] ) & "", 1 ) <> 5,
SWITCH (
TRUE (),
Percent_ < .9, 1,
Percent_ >= .9
&& Percent_ < 1, 2,
Percent_ >= 1, 3
),
SWITCH (
TRUE (),
Percent_ < .9, 3,
Percent_ >= .9
&& Percent_ < 1, 2,
Percent_ >= 1, 1
)
)Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-easonf-msft ,
Thank you for the assistance! That measure very nearly works, and I believe the only reason it doesn't is because I didn't specify a detail.
When the Account Numbers are stored, they are stored as something along the lines of "000. 0" where there are two spaces between the dot and the final number. This is a way to have two accounts, such as "005. 1" and "005. 2" where they are only slightly difference and a way to tell the difference. The problem is that this must be stored as a text value, and then the part of the measure:
LEFT ( SELECTEDVALUE ( 'Table'[Account] ) & "", 1 ) <> 5,
Does not work because it is comparing to a number instead of text, I tried to change it to "5" but it does not appear to work properly when comparing and only ever uses the else rule in the if/else statement.
Sorry for the confusion, and hopefully this is an easy fix.
Thanks for the help!
Shane
Hi , @shanerolle
Take a try to change the part of measure as below :
LEFT ( SELECTEDVALUE ( 'Table'[Account] ) & "", 3 ) <> "005"Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 63 | |
| 55 | |
| 42 | |
| 41 | |
| 23 |
| User | Count |
|---|---|
| 171 | |
| 136 | |
| 119 | |
| 80 | |
| 54 |