We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi Guys
I keep hitting a brick wall, I have this formula but I keep getting errors OR it only picks up the first condition "Green" and the "Persian Blue" for all my completed items.
I am trying to do is get all information marked as complete with "Persian Blue", if it is not marked as complete I need a colour name on the basis of the % of budget used on the work
Solved! Go to Solution.
Hi @Anonymous
Background colour =
SWITCH (
TRUE (),
[DAX Status] = "Complete", "Persian Blue",
AND ( [% remaining - Report] >= 0, [% remaining - Report] < 0.4 ), "Green",
AND ( [% remaining - Report] >= 0.41, [% remaining - Report] < 0.6 ), "Lemon",
AND ( [% remaining - Report] >= 0.61, [% remaining - Report] < 0.79 ), "Orange",
[% remaining - Report] > 0.8, "Red"
)
Please mark the question solved when done and consider giving kudos if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
@Anonymous ,
Check this - https://community.powerbi.com/t5/Community-Blog/Conditional-Formatting-Using-Custom-Measure/ba-p/1399855 if this helps you.
You can set the MIN and MAX values according to your requirement.
Appreciate your kudos!! Please mark my post as solution if this suits your requirement.
Hi @Anonymous
Background colour =
SWITCH (
TRUE (),
[DAX Status] = "Complete", "Persian Blue",
AND ( [% remaining - Report] >= 0, [% remaining - Report] < 0.4 ), "Green",
AND ( [% remaining - Report] >= 0.41, [% remaining - Report] < 0.6 ), "Lemon",
AND ( [% remaining - Report] >= 0.61, [% remaining - Report] < 0.79 ), "Orange",
[% remaining - Report] > 0.8, "Red"
)
Please mark the question solved when done and consider giving kudos if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 33 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 66 | |
| 41 | |
| 34 | |
| 25 |