Forum Discussion

Meerakhanna's avatar
Meerakhanna
Helper I
9 years ago
Solved

simple calculation based on aggregate value reg,.

Hi, I surprise if i can do a calculation over an aggregated value in power BI. Please see to the below screen shot & table. I need that 'AB on Total' value to be calculated on run in Power BI. Is it...
  • Eric_Zhang's avatar
    9 years ago

    Meerakhanna

     

    If you have data as below, you would first pivot the table.

     

    Then create and apply two measures in a Matrix visual.

     

    Total = SUM([A]) +SUM([B])+SUM([C])
    
    AB on Total = (SUM([A])+SUM([B]))/[Total]