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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Decomposition tree

Hi

I am trying to do a decomposition tree but the hierarchy must be measure based and not dimension based. 
I need the layout to look like the screenshot below:

kcanterbury_0-1664041528382.png

As you can see it is replicating the first measure sales growth right through.

i created a table to separate to try and create a hierarch. Column 1 contains Sales Growth, Column 2 contains Growth and S, Column 3 counts U and P.

This is the measure Im using

SWITCH(
    true(),
    SELECTEDVALUE('Hierarchy'[Column1])="Sales Growth",sg,
    SELECTEDVALUE('Hierarchy'[Column2])="Growth",tg,
    SELECTEDVALUE('Hierarchy'[Column2])="S",spt,
    SELECTEDVALUE('Hierarchy'[Column3])="U",upt,
    SELECTEDVALUE('Hierarchy'[Column3])="Ph",usp)

Help resolving this will be much appreciated.
1 REPLY 1
lbendlin
Super User
Super User

Decomposition trees only support a single measure as the basis. All other fields must be columns.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.