Forum Discussion
Conditional Formatting not is not working
- 6 years ago
sreyes10 ,
I would suggest you create a new calculate column using dax below and do the summarization operation on the new column:
New Column = IF ( Table[Boolean] = TRUE (), 1, 0 )Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Create a measure that return color and use like
https://community.powerbi.com/t5/Desktop/Conditional-Formatting-not-working/m-p/827603
- sreyes106 years agoHelper I
Hello,
But I need to put a background in the field. It could be possible?
- littlemojopuppy6 years agoCommunity Champion
What amitchandak suggested could work...sample code from something I worked on
ProgramEnrollmentStatusColor = SWITCH( ProgramEnrollments[ProgramEnrollmentStatus], "Active", "#3FB3E2", "Completed", "#47C0BA", "Expired", "#E5417A", "Abandoned", "#FCD722", BLANK() )Substitute the status with your values and you can Google for the hex codes for the colors you want.
After you create the column/measure for the color, in conditional formatting you want to format by field value.