Forum Discussion

Pratha's avatar
Pratha
Frequent Visitor
1 year ago
Solved

Remove Average data coming matrix when grouping is applied to it

Hello Experts,

 

I have added grouping (+) to my table matrix, but when I do so , the grouped row automatically shows "average" data against each row.

Request is : how can I blank out this average values which are showed against the summed function. 

(in screenshot , I do not want to see values which are striked out in yellow lines, instead a blank row is good)

Please let me know if you need more details. 

 

 

 

  • Hi Pratha,

    This is the expected behaviour of Power BI. When there is no data, all the rows get hidden. This is not an issue with the version but rather with how it functions.

     

    If this post helps, then please consider Accept it as a solution to help the other members find it more quickly.

     

    Thank you.

11 Replies

  • Hi Pratha ,

     

    To remove the average values that appear when grouping is applied in a Power BI matrix, you can modify your DAX measures to return a blank value when the matrix is at the group (subtotal) level. The issue occurs because Power BI automatically calculates an average or other aggregation for subtotal rows, even if you don’t want it to. To prevent this, you can use the ISINSCOPE function in your measure to check if the specific column used for grouping is currently in scope. If it is, the measure returns the original value; if not, it returns blank. This ensures that only detail rows show values, and subtotal rows remain empty.

    Here's the syntax:

    YourMeasure :=
    IF(
        ISINSCOPE('YourTable'[FunctionColumn]),
        [YourOriginalMeasure],
        BLANK()
    )
    

    Replace 'YourTable'[FunctionColumn] with the actual column used in your "Summed Functions" grouping. Also, [YourOriginalMeasure] should be the expression or measure you originally used to calculate values for each quarter or period. You’ll need to apply this logic to each relevant measure (Q1, Q2, Q3, Q4, H1, H2, FY) to suppress the subtotal values across the entire matrix.

     

    Best regards,

    • Pratha's avatar
      Pratha
      Frequent Visitor

      Thank you Sir

  • v-saisrao-msft's avatar
    v-saisrao-msft
    Icon for Community Support rankCommunity Support

    Hi Pratha, 
    Thank you for reaching out to the Microsoft fabric community forum. Thank you DataNinja777  for your input on this issue.
     After thoroughly reviewing the details you provided, I was able to reproduce the scenario, I have used it as sample data on my end and successfully implemented it.   

    Dax Measure:  

    % Display Measure = 
    IF (
        ISINSCOPE(PerformanceData[SubFunction]),
        BLANK(),
        AVERAGE(PerformanceData[Percentage])
    )
    

    Output: 

    If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly. 
     
    Thank you.