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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
saivina2920
Post Prodigy
Post Prodigy

De composition tree chart order and final expand result not proper

I am developing de composition chart for my one of the esteemed project.

 

My chart order  is currently like below.

 

saivina2920_0-1684484963591.png

 

But, i want Dept columns as vertical order instead of horizontal order.

 

saivina2920_1-1684485089532.png

 

pls. find the sample Pbix files and data excel as mentiond below.

Pls. refer the second sheet (conditions) for final expand result.

 

Test File ==> https://1drv.ms/f/s!AiSRcgO5FUmN8hfMadot49lN72hh?e=INKSOa 

 

pls. help how to achieve this. this is very very urgent.

 

1 ACCEPTED SOLUTION

Hi @saivina2920 

You can unpivot the table first in power query

vxinruzhumsft_0-1684735568971.png

 

Then create a new calculated column

Column =
SWITCH (
    TRUE (),
    [CODE] = BLANK ()
        && [VALUE] = BLANK (), "Code & Value Blank",
    [CODE] <> BLANK ()
        && [VALUE] <> BLANK (), "Code & Value Non Blank",
    [CODE] <> BLANK ()
        && [VALUE] = BLANK (), "Code No Blank and Value Blank",
    [CODE] = BLANK ()
        && [VALUE] <> BLANK (), "Value No Blank and Code Blank"
)

vxinruzhumsft_1-1684735655253.png

Best Regards!

Yolo Zhu

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

 

View solution in original post

4 REPLIES 4
v-xinruzhu-msft
Community Support
Community Support

Hi @saivina2920 

After testing, this decomposition tree is arranged horizontally, and there is no way to set it vertically for the time being.

You can refer to the following link.

Decomposition tree - Power BI | Microsoft Learn

 

Best Regards!

Yolo Zhu

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

Thanks for your reply.

In that case (there is no way to set vertically), 

How do we arrive the below mentioned result (Highlighed Arrow) when excellent expanded...?

 

saivina2920_1-1684730457813.png

 

pls. suggest or modify my .pbix files like above highlighted..

 

Hi @saivina2920 

You can unpivot the table first in power query

vxinruzhumsft_0-1684735568971.png

 

Then create a new calculated column

Column =
SWITCH (
    TRUE (),
    [CODE] = BLANK ()
        && [VALUE] = BLANK (), "Code & Value Blank",
    [CODE] <> BLANK ()
        && [VALUE] <> BLANK (), "Code & Value Non Blank",
    [CODE] <> BLANK ()
        && [VALUE] = BLANK (), "Code No Blank and Value Blank",
    [CODE] = BLANK ()
        && [VALUE] <> BLANK (), "Value No Blank and Code Blank"
)

vxinruzhumsft_1-1684735655253.png

Best Regards!

Yolo Zhu

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

 

Hi @v-xinruzhu-msft ,

Thanks for your awesome output and sorry for the late reply.

Is is possible to show the percentage with count in De composition all the tree nodes....?

 

Important Note : Total Records will  be 16 and the expansion node will based on that. How it will come 40..could you pls. explain this...?

pls. reply this is very very urgent.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors