Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am trying to create a report, that per client requests, should have cell background colour formatting for when a value is above the threshold. I am struggling to find a way around this. The values are based on string type, which any value equal or under the threshold has a < in front of it (<900, <1800) so for this case I could just use that as the filter, any value that has "<" or is blank should have "White" background colour formatting, whereas any other value should be yellow.
I'm trying with the current formula:
=IIF(InStr(Fields!humm2.Value, "<") > 0 OR IsNothing(Fields!humm2.Value) OR Fields!humm2.Value = "", "White", "Yellow")
Yet I get this info:
An error occurred during local report processing.
How should I write the formula to get it to work? Cheers
From a PBI Desktop App report it should look like this:
Solved! Go to Solution.
What about:
IIF(Left(Fields!humm2.Value, 1) = "<") OR IsNothing(Fields!humm2.Value) OR Fields!humm2.Value = "", "White", "Yellow")
I have tweaked a little bit, I swapped the IIf into a SWITCH statement and it worked
It says this:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
96 | |
81 | |
74 | |
66 |
User | Count |
---|---|
126 | |
106 | |
105 | |
86 | |
72 |