Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

How to show Total Amount at the end in Stacked Column Chart

Hello,

I have added Stacked column chart in which it is showing data of A, B, C and its amount.

vaishnaviudan_0-1633720054033.png

I have graph like this:

vaishnaviudan_1-1633719687380.png

I want result like following graph which shows Total(A+B+C) at the end of the chart:

vaishnaviudan_2-1633719700604.png

Thanks.

 

1 ACCEPTED SOLUTION
smpa01
Super User
Super User

@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

 

 

smpa01_0-1633721268307.png

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

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.

smpa01
Super User
Super User

@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

 

 

smpa01_0-1633721268307.png

 

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs
AlexisOlson
Super User
Super User

You can do this with a column chart but it will be significantly simpler with a waterfall chart since you get the total automatically.

AlexisOlson_1-1633720298560.png

 

Note: I'm not saying you need to do this way, just pointing out another possibility.

Anonymous
Not applicable

Hi @AlexisOlson ,

Thanks for your quick response. I tried this way as well. but client need result in stacked column chart only.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.