Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
123 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |