Forum Discussion

griffinst's avatar
griffinst
Helper I
4 months ago
Solved

custom total row

I'm converting excel reports into power bi.  One issue is for the totals column these two need a different calculation.  The sum that power bi is doing isn't what I want.  The table has several other columns that are fine with the default totaling.  It's just these 2 columns.

 

        

 

 

  • Power BI totals are not simple sums, they re-evaluate the measure in total context. To fix the Total you need to use a different measure logic instead on simple aggregation like:

    PMPM Trend % =
    IF(
        ISINSCOPE(YourTable[Category]),   -- row level
        [Your Row Calculation],
        [Your Custom Total Calculation]   -- total logic
    )

5 Replies

  • Hi griffinst 

     

    The March 2026 update has an option to customize total calculation. The dropdown doens't have an option for average but you can edit the calculation visually.

     

  • Power BI totals are not simple sums, they re-evaluate the measure in total context. To fix the Total you need to use a different measure logic instead on simple aggregation like:

    PMPM Trend % =
    IF(
        ISINSCOPE(YourTable[Category]),   -- row level
        [Your Row Calculation],
        [Your Custom Total Calculation]   -- total logic
    )
    • v-priyankata's avatar
      v-priyankata
      Community Support

      Hi griffinst 

      Hope everything’s going smoothly on your end. I wanted to check if the issue got sorted. if you have any other issues please reach community.