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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
MiaZhao
Helper I
Helper I

Stacked chart with multiple values

Hi Everyone,

 

How can I draw a stacked chart with multiple values?

 

For instance, show budget as one column, and actual by each salse as one column.

 

2018-05-31 13_47_48-Sales Scorecard - Power BI Desktop.png

1 ACCEPTED SOLUTION

Hi @MiaZhao

Formula below will help

Table =
VAR Table1 =
    SUMMARIZE (
        Budget,
        "value", CALCULATE ( MAX ( Budget[budget] ), FILTER ( Budget, [month] = 5 ) ),
        "Legend", "Budget",
        "category", "Budget"
    )
VAR Table2 =
    SUMMARIZE ( Actual, Actual[amount], [sales], "category", "may closed sales" )
RETURN
    UNION ( Table1, Table2 )

2.png

 

Here is my Pbix.

 

Best Regards

Maggie

View solution in original post

3 REPLIES 3
MiaZhao
Helper I
Helper I

More details.

Budget

monthyearbudget
12018100
22018100
32018100
42018100
5201875

Actual

datesalesamount
5/1/2018A5
5/2/2018B30
5/3/2018C4
5/4/2018A5
5/5/2018B11
5/6/2018C9

Hi @MiaZhao

Formula below will help

Table =
VAR Table1 =
    SUMMARIZE (
        Budget,
        "value", CALCULATE ( MAX ( Budget[budget] ), FILTER ( Budget, [month] = 5 ) ),
        "Legend", "Budget",
        "category", "Budget"
    )
VAR Table2 =
    SUMMARIZE ( Actual, Actual[amount], [sales], "category", "may closed sales" )
RETURN
    UNION ( Table1, Table2 )

2.png

 

Here is my Pbix.

 

Best Regards

Maggie

Thank you very much. Maggie. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.