Forum Discussion

lailailaieric's avatar
lailailaieric
Regular Visitor
9 years ago

Data Representation

Dear All   I have started to use PowerBI and I ran into this problem. I have looked online but seems like there are no solutions to it just yet.     As per below, these are the information I have.   

 

Place              Amount        Staff           Amount per Staff (Amount divided by Staff)

East China            10             11                      0.91

West China          20             30                       0.67

South China         62             50                      1.24

Asia                      17             25                      0.68

Total                   109            263                     0.41  

 

Does anyone how in PowerBI can I show the "0.41" as the answer?   I am only able to get the average, sum, count, etc amount per staff but that is not what I am looking for. I am looking for the total amount divided by total staff.   

 

Looking forward to hear from you pros out there. 

9 Replies

  • Phil_Seamark's avatar
    Phil_Seamark
    Microsoft Employee

    Hi lailailaieric

     

    Have you tried adding a calculated measure to your table?

     

    Something like this?

     

    Amount Per Staff = 
    	DIVIDE(
    		SUM(Table2[Amount]) , 
    		SUM(Table2[Staff])
    		)
    • lailailaieric's avatar
      lailailaieric
      Regular Visitor

      Hi Phil

       

      If thats the case, does it mean i have to use the table format again for this chart and I cant use other visuals?

       

      Because the aim for me to when I click Asia, the number representating would appear, but when nothing is click "0.41" would show up. 

       

      Thanks

       

       

      • Phil_Seamark's avatar
        Phil_Seamark
        Microsoft Employee

        The measure should work as expected and show the correct number.

         

        Give it a try :)