Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet 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
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.
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?
Solved! Go to Solution.
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.
However, currently there's no Area+Line chart in Power BI Desktop, you may try other combo chart like Column + Line chart.
Regards,
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.
However, currently there's no Area+Line chart in Power BI Desktop, you may try other combo chart like Column + Line chart.
Regards,
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
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
87 | |
86 | |
83 | |
65 | |
49 |
User | Count |
---|---|
127 | |
108 | |
89 | |
70 | |
66 |