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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
MrNoob
Helper II
Helper II

comparing total group vs broken down catergory

I am trying to compare data, using a combo chart, so an area chart for the total grouped data,  then compared to each category broken down.  Here is a sample from excel trying to recreate the measures to use in DAX.

 

 

 Chart Sample

 

 

Each line would be the total dataset, on a secondary axis, while the lines are the same dataset broken down into its subgroups.  Anyone know how to work this in DAX?

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@MrNoob

 

According to your description, you want to make your lines ingore subgroup filtering. Right?

 

In your scenario, is the sub group on Legend? If so, you can create a measure and limit the filter context into entire table. 

 

Measure = CALCULATE(SUM(Table[Value]),ALL(Table))

 

Or if you need to keep the subgroup field filtering and ingore all other fields filtering, you can use ALLEXCEPT()

 

Measure = CALCULATE(SUM(Table[Value]),ALLEXCEPT(Table,Table[SubGroup]))

 

You can enable secondary axis in combo chart. 

 

7.PNG

 

However, currently there's no Area+Line chart in Power BI Desktop, you may try other combo chart like Column + Line chart. 

 

Regards,

 

 

 

View solution in original post

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

@MrNoob

 

According to your description, you want to make your lines ingore subgroup filtering. Right?

 

In your scenario, is the sub group on Legend? If so, you can create a measure and limit the filter context into entire table. 

 

Measure = CALCULATE(SUM(Table[Value]),ALL(Table))

 

Or if you need to keep the subgroup field filtering and ingore all other fields filtering, you can use ALLEXCEPT()

 

Measure = CALCULATE(SUM(Table[Value]),ALLEXCEPT(Table,Table[SubGroup]))

 

You can enable secondary axis in combo chart. 

 

7.PNG

 

However, currently there's no Area+Line chart in Power BI Desktop, you may try other combo chart like Column + Line chart. 

 

Regards,

 

 

 

P3Tom
Helper I
Helper I

The built-in visualizations for combo charts are (1) the line and stacked column chart and (2) the line and clustered column chart.

 

Here is a link for a possible solution with two vertical axes.

 

Tom

www.powerpivotpro.com

 

 

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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