Forum Discussion
rosscortb
5 years agoPost Patron
value format error in if statement
Hello, What do I need to do to fix this format/value error please? Column = IF('Spans & Layers'[Direct Reports] > 10,"Red",IF('Spans & Layers'[Direct Reports] >=1 <= 2,"Red",IF('Spans & Layers'...
- Anonymous5 years ago
Hi rosscortb ,
You can modify your dax like this:
Column = IF('Spans & Layers'[Direct Reports] > 10,"Red", IF('Spans & Layers'[Direct Reports] >=1 || 'Spans & Layers'[Direct Reports] <= 2,"Red", IF('Spans & Layers'[Direct Reports] >= 6 || 'Spans & Layers'[Direct Reports]<= 10,"Green", IF('Spans & Layers'[Grade] in {"S1","S2","S3","S4"},"Black","Orange"))))Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
5 years agoNot applicable
Hi rosscortb ,
You can modify your dax like this:
Column =
IF('Spans & Layers'[Direct Reports] > 10,"Red",
IF('Spans & Layers'[Direct Reports] >=1 || 'Spans & Layers'[Direct Reports] <= 2,"Red",
IF('Spans & Layers'[Direct Reports] >= 6 || 'Spans & Layers'[Direct Reports]<= 10,"Green",
IF('Spans & Layers'[Grade] in {"S1","S2","S3","S4"},"Black","Orange"))))
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.