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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bass184
New Member

stacked column and independent line chart

Hello,

 

New to Power BI, and am trying to recreate in Power BI a stacked column and independent line chart. Structure of excel file is

Month   Data    Type

1             20         1

2             30         1

2              15        2

1              15        Budget

2              45        Budget

Type 1 and 2 would be stacked and budget would be independent line.  Is this possible?

1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @bass184 

You may use Line and stacked column chart. Then create two measures and use them in the visual like below:

Type1,2 = CALCULATE(SUM('Table'[Data]),FILTER('Table','Table'[Type] in {"1","2"}))
BudgetLine = CALCULATE(SUM('Table'[Data]),FILTER('Table','Table'[Type]="Budget"))

1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Domantas
Advocate I
Advocate I

I have an opposite issue. I know how to make this Line and stacked column chart in Power BI. But how to recreate the same thing in Excel's PivotChart when data is comming from a data model and not from a single table.

https://community.powerbi.com/t5/Desktop/Line-and-Stacked-column-chart-Recreate-in-Power-Pivot/m-p/7...

 

v-cherch-msft
Employee
Employee

Hi @bass184 

You may use Line and stacked column chart. Then create two measures and use them in the visual like below:

Type1,2 = CALCULATE(SUM('Table'[Data]),FILTER('Table','Table'[Type] in {"1","2"}))
BudgetLine = CALCULATE(SUM('Table'[Data]),FILTER('Table','Table'[Type]="Budget"))

1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.