Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello everybody!
I received a request from a customer, in which she asked for the hierarchical tree data label to be changed, but I'm not getting it.
Basically, I need each step of the hierarchical tree to show as a data label, the percentage in relation to the total of the previous step.
Below is the chart. You can see that the data label contains the total for each category, but what I need is to show the percentage in relation to the previous step. For example, in the step "1ª Rechamada", in the first category "AGENDAMENTO REAPAR...", instead of showing the value "107", I need it to show "26.35%", that is, 107 of the current category divided by 406 of the previous step.
Can you help me?
Solved! Go to Solution.
Hi @juniorjfd
For this you need a measure similar to the one below:
test =
SWITCH (
TRUE (),
ISINSCOPE ( 'Table'[sub] ), DIVIDE ( [count], CALCULATE ( [count], ALLSELECTED ( 'Table'[sub] ) ) ) * 100 ,
ISINSCOPE ( 'Table'[CAt] ), DIVIDE ( [count], CALCULATE ( [count], ALLSELECTED ( 'Table'[CAt] ) ) )* 100,
[count]
)
Be aware that for this to work you need to have the order of the columns to be in the same order has the decomposition tred, if you change the order the values will be strange.
Another thing is what do you want to show on the first value is it the value or the percentage, has tyou can see my value is multiplied by 100 to get the value correct but it does not show the % value, we can do it with a use of the tabular editor to have a condittional formatting applied.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThank you very much! It finally worked!
Hi @juniorjfd
For this you need a measure similar to the one below:
test =
SWITCH (
TRUE (),
ISINSCOPE ( 'Table'[sub] ), DIVIDE ( [count], CALCULATE ( [count], ALLSELECTED ( 'Table'[sub] ) ) ) * 100 ,
ISINSCOPE ( 'Table'[CAt] ), DIVIDE ( [count], CALCULATE ( [count], ALLSELECTED ( 'Table'[CAt] ) ) )* 100,
[count]
)
Be aware that for this to work you need to have the order of the columns to be in the same order has the decomposition tred, if you change the order the values will be strange.
Another thing is what do you want to show on the first value is it the value or the percentage, has tyou can see my value is multiplied by 100 to get the value correct but it does not show the % value, we can do it with a use of the tabular editor to have a condittional formatting applied.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsJoin the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.