Forum Discussion
Decomposition Conditional Formatting
- 5 years ago
Hi BSM1985 ,
Try to add the following custom measure:
Measure = SWITCH( TRUE(); SELECTEDVALUE(Testing[A]) = "NO";"Black"; SELECTEDVALUE(Testing[B]) = "NO";"#FFC200"; SELECTEDVALUE(Testing[C]) = "NO";"Grey" )You can also change the Black and Grey to other custom colour codes just remember to place the # before the code.
Check PBIX file attach.
Sorry MFelix
I was not clear. This works for one node, not for all as shown below. I would need different color for each 'No' for each node as shown in below screenshot.
Hi BSM1985 ,
Believe that has to do with the order of the function try:
Measure =
SWITCH (
TRUE ();
SELECTEDVALUE ( Testing[C] ) = "NO"; "Grey";
SELECTEDVALUE ( Testing[C] ) = "Yes"; "Blue";
SELECTEDVALUE ( Testing[B] ) = "NO"; "#FFC200";
SELECTEDVALUE ( Testing[B] ) = "Yes"; "Blue";
SELECTEDVALUE ( Testing[A] ) = "No"; "Black";
SELECTEDVALUE ( Testing[A] ) = "Yes"; "Blue"
)- Ayappan4 years ago
Helper III
Hi MFelix Please take a look on this
In Decomposition tree condition formation i need to change color based on 1 column value .
If it is fail then its parent also should be in red....
You can see the measure i had used in below image ..
Thanks in advance ..
- MFelix4 years ago
Super User
Hi Ayappan
Can you please share some more details? If you can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.