Forum Discussion

webe0436's avatar
webe0436
New Member
9 months ago
Solved

How to add row to matrix calculating difference between two values ?

Hi, My goal is to compare the forecast of two teams across fiscal years. I added their forecasted revenue to a matrix as shown in the screenshot below: My goal is to add a third row that ...
  • Praful_Potphode's avatar
    9 months ago

    Hi webe0436 

     

    Forecast Revenue = SUM(YourTable[ForecastRevenue]) 
    Team A Revenue = CALCULATE([Forecast Revenue],YourTable[ForecastTeam]="forecast team a") 
    Team B Revenue = CALCULATE([Forecast Revenue],YourTable[ForecastTeam]="forecast team b") 
    Difference FOrecast = [Team A Revenue]-[Team B Revenue]

    The create a matrix as show below.

    turn switch values to rows on.

    Sample pBIX can be downloaded from here.

    please give kudos or mark it as solution once confirmed.

     

    Thanks and Regards,

    Praful