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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. 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

3 REPLIES 3
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,

 

 

 

Hi I need you help, because I am facing to a similar problem.

I am trying to create a line chart with 

x axis (datetime column). --> A

y axis (average of a column). --> B

secondary y axis (an already measure created). --> C

Then I would like to include legend which only affects y axis (B). This legend is another column belongs to the same table

Then when I am trying to create my line chart and I complete A, B and C, pbix cannot allow me to include legend. Maybe its because should I change some of the A,B, and C?

 

When I try to create the line chart with no legend, the result is legitime, but it is impossible fullying legend field.

 

Please could you help me? It is a similar questions to the ones you answer before.

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

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.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.