Forum Discussion

MrNoob's avatar
MrNoob
Icon for Helper II rankHelper II
9 years ago
Solved

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 measure...
  • v-sihou-msft's avatar
    9 years ago

    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. 

     

     

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

     

    Regards,