Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
How can I format the data labels on my bar chart to show both the totals and the percentages?
Like this: 8 (7.21%)
Thanks!
Solved! Go to Solution.
Hi @cchung3 ,
According to your description, here's my solution.
Sample:
Creat a measure:
Measure =
SUMX ( ALL ( 'Table' ), 'Table'[Sales] ) & "("
& FORMAT (
DIVIDE ( MAX ( 'Table'[Sales] ), SUMX ( ALL ( 'Table' ), 'Table'[Sales] ) ),
"#.00%"
) & ")"
In the visual format pane>Data labels, turn on Costom label and put the measure in Field cell. Get the result:
I attach my sample below for your reference.
Best regards,
Community Support Team_yanjiang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @cchung3 ,
According to your description, here's my solution.
Sample:
Creat a measure:
Measure =
SUMX ( ALL ( 'Table' ), 'Table'[Sales] ) & "("
& FORMAT (
DIVIDE ( MAX ( 'Table'[Sales] ), SUMX ( ALL ( 'Table' ), 'Table'[Sales] ) ),
"#.00%"
) & ")"
In the visual format pane>Data labels, turn on Costom label and put the measure in Field cell. Get the result:
I attach my sample below for your reference.
Best regards,
Community Support Team_yanjiang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@cchung3 , Try Measure driven data labels
https://powerbi.microsoft.com/en-us/blog/power-bi-may-2023-feature-summary/#post-23312-_Toc134425713
User | Count |
---|---|
98 | |
90 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
66 |