Forum Discussion

Kiran_Gundu's avatar
Kiran_Gundu
Frequent Visitor
8 years ago

Need Help

Hi, 

 

Please find the below requirement.

 

I have data like below , i know the total cost of each project and individual employees revenue. 

Now I need to calculate profit and profit percentage based on total cost and total revenue.

 

total profit = total revenue - total cost. 

Indivial profits = total profit / total revenue * revenue

profit percentage = individual profit / total profit * total profit percentage

 

I have calculate in one filed, same as for remainig one. can you please help me to generate report in power bi.

 

Project EmpnoEmpnameCostRevenueProfitProfit Percentage
Project 11A 3000046000/81000*30000=1703717037/46000*56.79=21.03
Project 12B 15000  
Project 13C 36000  
Project 10Dummy35000810004600056.79
Project 25E 36000  
Project 26F 28000  
Project 27G 39000  
Project 20DUmmy47000   
Project 39I 25000  
Project 310J 30000  
Project 311K 40000  
Project 30Dummy50200   

2 Replies

    • Kiran_Gundu's avatar
      Kiran_Gundu
      Frequent Visitor

      HI,

       

      Below is data, I want to calculate profit and profit percentage for below data in pwer bi.

       

      If I filter project column then it should be calcualte based on filtering and should be dispaly profit and profit %

       

      Example - if i filter project1 -> profit should be calculated revenue - cost

                                                  -> profit % should be calculate profit / revenue.

                   - if I filter project 2 & 3 -> Profit should be calculate for these two (total revenue) - total cost

                                                         -> Profit % should be calculate total profit / total revenue.

       

      Project EmpnoEmpnameCostRevenue
      Project 11A 30000
      Project 12B 15000
      Project 13C 36000
      Project 10Dummy35000 
      Project 25E 36000
      Project 26F 28000
      Project 27G 39000
      Project 20DUmmy47000 
      Project 39I 25000
      Project 310J 30000
      Project 311K 40000
      Project 30Dummy50200