March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I hope someone can help, cause sometimes propagation and filter context is difficult.
Regards
Ron
Solved! Go to Solution.
Here's the measure that works:
Hi @Padycosmos thanx for you answer
I changed the measure as follows (by the way I replaced Amber by Purple, because for Amber it returs Blue, which seems odd)
You have >=_differ in "Purple" and <= _differ in "Red", you need to remove one of the = . Then it should work
Hi @Padycosmos
unfortunately no change
I changed
Could you please move "red" as the first statement, "purple" as the second and "green" as the last and try again?
Hope this works
Color =
var _differ = 1 - [KPI perc]
RETURN
SWITCH(
TRUE(),
[Check Against Target] >= 1, "Green",
[Check Against Target] >= _differ && [Check Against Target] < 1, "Purple",
[Check Against Target] < _differ && [Check Against Target] < 1, "Red"
)
If the data is not sensitive, could you please share the pbix file?
Hi @Padycosmos
I can share the pbix file. Looking how to do that, but can't find it. How do I attach a pbix to a reply?
Here's the measure that works:
You can put the file in your google drive and paste the link here. Please note to enable access to th file for anyone with the link
Hmm, ok , never used google drive. Will try later today. I can also send it personally if I have your email
You may send it to padycosmos@gmail.com
In Power BI, though the display format is %, the numbers are stored as decimals. Please make the following changes and try again
var _differ = 1- [KPI perc]
Replace both the 100s in the SWITCH() to 1
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
146 | |
97 | |
79 | |
69 |