Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi Community
I have a stacked column chart showing the number of docs checked by month, separated in categories A, B and C.
I get each individual value, but I also need the graphic to show the total (A + B + C) for each month (on top of each column).
Is this possible?
Solved! Go to Solution.
@ADC,
Create another three measures in your table, and create Stacked Column chart as shown in the screenshot below.
A = CALCULATE(SUM(Table[docs number]),FILTER(Table,Table[Category]="A"))
B = CALCULATE(SUM(Table[docs number]),FILTER(Table,Table[Category]="B"))
C = CALCULATE(SUM(Table[docs number]),FILTER(Table,Table[Category]="C"))
Regards,
Lydia
If you use a line and stacked column chart visual, then you can make the line be the total amount. Go to the formatting section for the visual and expand the Shapes section, then change the Stroke width to 0 so the line won't show. Next go to the Data labels section and turn on Customize series. Then you can change the color and font size of the total value so it is different than the other data labels.
If you go to the formatting for the bar chart with a line, expand the Shapes section, and change the Stroke width to 0, then the line doesn't show
@ADC,
You can create a measure as follows to calculate the total docs number for each month.
total = CALCULATE(SUM(Table[docs number]),ALLSELECTED(Table[Month]))
However, in stacked column chart, when you drag field to Legend, it is not possible to drag more than one fields to Values. You can switch to use Line and stacked column chart and create the chart as shown in the following screenshot.
Regards,
Lydia
Lydia,
Thanks a lot for your answer.
It is a nice workaround and I get the total sum shown in the graphic that way.
However, I was wandering if the total sum of the categories can be shown in each column, on top of the column.
I need that very frequently and the Line sometimes generates confusion on the audience.
Any other way to handle it?
Thanks again.
Regards.
Alejandro
@ADC,
Create another three measures in your table, and create Stacked Column chart as shown in the screenshot below.
A = CALCULATE(SUM(Table[docs number]),FILTER(Table,Table[Category]="A"))
B = CALCULATE(SUM(Table[docs number]),FILTER(Table,Table[Category]="B"))
C = CALCULATE(SUM(Table[docs number]),FILTER(Table,Table[Category]="C"))
Regards,
Lydia
This works if you only have a few values, but if you have hundreds of values this becomes tedious
Filters are not working for indvidual category it select whole x axis as filter.
we can use drill down feature of power bi to filter seleted pane so we can filter that selected pane data.
for filter purpose use category of the given pane in axis field.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
79 | |
79 | |
59 | |
36 | |
33 |
User | Count |
---|---|
92 | |
59 | |
59 | |
49 | |
41 |