Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
suni_v
Regular Visitor

Decomposition Tree data bar conditional formatting

Hi Team,


I have decomposition tree with 3 levels as shown below. In this hierarchy, I would need: If one of the nodes unders product is yellow, all of its parent nodes should be yellow in color. Could someone please help on fulfilling this requirement. 

 


Capture.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Thanks,

SV

2 REPLIES 2
Icey
Community Support
Community Support

Hi @suni_v ,

 

Based on my test, I'm afraid this is not supported in Power BI.

 

To my understanding, if the decomposition tree is formatted as what you want, let's take an example:

 

When Product="Paseo", the bar of MonthNumer=6 should be yellow;

When Product="Velo", the bar of MonthNumer=6 should be purple;

 

Then how shoud the bar of MonthNumer show? Yellow or Purple?

 

Therefore, it may not supported.

 

Capture.JPG

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Arul
Super User
Super User

Hi @suni_v ,

I tried this by creating a measure and use it in conditional formatting,

CF = 
SWITCH(TRUE(),
SELECTEDVALUE(financials[Year])=2014,"#FFC200",
SELECTEDVALUE(financials[Year])=2013,"Black")

Arul_0-1651847079713.png

 

Try and let me know if it works as per your expectation or not.

 

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.