Forum Discussion

sandrasamoah's avatar
sandrasamoah
New Member
9 years ago
Solved

Visual for Difference between Profit and cost

Data table 1      
     Calculated column 
PersonProduct NumberJob TitleHoursRatesCost 
SandraKICK 1Managing Partner501005000 
PriscillaKICK 2Business Director25802000 
BestyKICK 3Account Director12.560750 
AlbertaKICK 4Account Manager6.2540250 
       
       
Data table 2      
       
PersonProduct NumberJob TitleRevenue KPI   
SandraKICK 1Managing Partner10000   
PriscillaKICK 2Business Director5000   
BestyKICK 3Account Director2500   
AlbertaKICK 4Account Manager1250   

 

 

Hi I am trying to subtract the cost from the revenue above for the two different tables on 1 visual but I am struggling. I tried using the KPI but i doesnt show the difference.

  • Relate the two tables on Person or you may need a Person bridge table with unique values and relate both tables to it. You should then be able to create a measure like:

     

    RevenueCost = [Revenue KPI] - SUM(RELATED(Table1[Cost]))

2 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    Relate the two tables on Person or you may need a Person bridge table with unique values and relate both tables to it. You should then be able to create a measure like:

     

    RevenueCost = [Revenue KPI] - SUM(RELATED(Table1[Cost]))
    • sandrasamoah's avatar
      sandrasamoah
      New Member

      Thanks, I am grateful. I had been grappling with this for a while.