Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hello,
I have added Stacked column chart in which it is showing data of A, B, C and its amount.
I have graph like this:
I want result like following graph which shows Total(A+B+C) at the end of the chart:
Thanks.
Solved! Go to Solution.
@Anonymous
the axis must present in the dataset itself
You need a table like this
| name | amount | Column |
|-------|--------|--------|
| A | 4000 | |
| B | 5500 | |
| C | 6000 | |
| Total | | |
You need a measure like this
_total =
VAR _currentlyVisiblePlace =
MAX ( fct[name] )
VAR _aggregation =
SWITCH (
TRUE (),
_currentlyVisiblePlace <> "Total", SUMX ('fct',fct[amount] ),
_currentlyVisiblePlace = "Total", SUMX ( ALL ( fct ),fct[amount])
)
RETURN
_aggregation
Hi @Anonymous ,
Does the replies above solve your problem? If it has been solved, please mark the correct reply as the standard answer to help the other members find it more quickly.Thank you very much for your kind cooperation!
Hope it helps,
Community Support Team _ Caitlyn
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
the axis must present in the dataset itself
You need a table like this
| name | amount | Column |
|-------|--------|--------|
| A | 4000 | |
| B | 5500 | |
| C | 6000 | |
| Total | | |
You need a measure like this
_total =
VAR _currentlyVisiblePlace =
MAX ( fct[name] )
VAR _aggregation =
SWITCH (
TRUE (),
_currentlyVisiblePlace <> "Total", SUMX ('fct',fct[amount] ),
_currentlyVisiblePlace = "Total", SUMX ( ALL ( fct ),fct[amount])
)
RETURN
_aggregation
You can do this with a column chart but it will be significantly simpler with a waterfall chart since you get the total automatically.
Note: I'm not saying you need to do this way, just pointing out another possibility.
Hi @AlexisOlson ,
Thanks for your quick response. I tried this way as well. but client need result in stacked column chart only.
OK. In that case, see if these prior posts help.
https://community.powerbi.com/t5/Desktop/Grand-Total-in-Bar-Chart/m-p/612631
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.