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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello,
I’m working with a clustered column chart (which visually resembles a stacked column chart), and I’m trying to display the total values for each column.
Here’s what I’m aiming for:
However, when both options are enabled, I end up with duplicate data labels for each type (e.g., Type 1 and Type 2), which makes the chart cluttered and confusing, see the screenshot for reference.
I’m having trouble getting this to work properly. I’ve tried toggling both “Data Labels” and “Total Labels”, but neither gives the desired result.
Any suggestions on how to fix this would be greatly appreciated. Power BI file is here.
Thank you!
Solved! Go to Solution.
The code works fine when I kept both Data Labels and Total Labels turned on.
Data_Label =
VAR SelectedTypes = ALLSELECTED(type_sort[type])
VAR SelectedCount = COUNTROWS(SelectedTypes)
RETURN
IF(
SelectedCount = 1 &&
MAX(type_sort[type]) IN { "type-1", "type-2", "type-3" },
[describeMeasure],
BLANK()
)
If I select only type-1
If I select combination of type-1/type-2/type-3
If I select only type-12
If I select any combination of type-1/type-2/type-3/type-12
Note: While ChatGPT provided the final working code, I had already shared the initial code, expected output, and other relevant details. It took a few iterations to get everything functioning correctly.
Thanks to everyone who engaged with my post and offered helpful suggestions, your input was truly appreciated!
The code works fine when I kept both Data Labels and Total Labels turned on.
Data_Label =
VAR SelectedTypes = ALLSELECTED(type_sort[type])
VAR SelectedCount = COUNTROWS(SelectedTypes)
RETURN
IF(
SelectedCount = 1 &&
MAX(type_sort[type]) IN { "type-1", "type-2", "type-3" },
[describeMeasure],
BLANK()
)
If I select only type-1
If I select combination of type-1/type-2/type-3
If I select only type-12
If I select any combination of type-1/type-2/type-3/type-12
Note: While ChatGPT provided the final working code, I had already shared the initial code, expected output, and other relevant details. It took a few iterations to get everything functioning correctly.
Thanks to everyone who engaged with my post and offered helpful suggestions, your input was truly appreciated!
Hi @0Experience
Thank you for contacting the Microsoft Fabric Community Forum.
We reviewed the PBIX file you provided. To display the totals correctly, you just need to turn off Data labels and keep Total labels on, as @Bmejia suggested. This will fix the issue.
Please see the attached screenshot for reference.
I hope this information is helpful. . If you have any further questions, please let us know. we can assist you further.
Regards,
Microsoft Fabric Community Support Team.
Thank you both for your responses.
I had already tried the method you suggested before posting. However, when the "Data Label" option is turned off, selecting a single item from the slicer does not display the data value.
Please note that the "Total Labels" option is turned on, even though it appears off in the screenshot below when a single selection is made. "Total Labels" automatically turns on when multiple selections are made.
Hi @0Experience
In Power BI stacked column or bar charts, Total labels are visible only when there are two or more series stacked together. If a slicer or filter reduces the chart to a single series, Power BI treats it as a single column, so total labels are hidden. You can enable Data labels to show values for a single series, but when multiple series are selected, this can lead to duplicate labels for each series, which may not be ideal. Currently, Power BI does not allow conditional switching between Data labels and Total labels, so total labels will not appear for single series selections. If needed, you might explore third-party visuals from AppSource, like Enhanced Stacked Column/Bar, which provide more options for custom and conditional label formatting.
Regards,
Karpurapu D.
Could you just turn off the Data Labels and leave the Total Labels on.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!