Forum Discussion

rodfernandez's avatar
rodfernandez
Helper I
7 years ago
Solved

Measure for multiplying values from different tables

Hi,

Have the followinfg tables 

JobTypeHours
BossA2
BossB1
BossC2
AnalystA3
AnalystB5
SeniorA2
SeniorB2
SeniorC2
managerA1
managerB2
assistant managerA1
assistant managerC3
assistant managerD6

 

JobMoney
Boss10
Senior5
Analyst2
Secretary 1
Manager8
Assistant Manager7


And I want ot create the following graph 



Hours only sum the hours for each job ( only Boss, Analist and Senior) and money multiply the sum of hours with the respective money amount for each job 

I upload the to tables to power BI and related the two tables with the Job columns. I created this measure for the Money columns but it dosent work properly 

 
Amount Money (USD) =  
CALCULATE(SUM(Table1[Hours])*SUM(Table2[Money]))
  • rodfernandez

     

    Firstly, click query editor-> Merge Queries as New, do click the Fuzzy Match option.

     

    After merged the table will be like below, then applied&close.

     

    Create a measure using DAX below and drag Job, Hours and measure in the cluster column chart.

     

     

    You can also refer to the appendix.

     

    Community Support Team _ Jimmy Tao

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

     

1 Reply

  • v-yuta-msft's avatar
    v-yuta-msft
    Community Support

    rodfernandez

     

    Firstly, click query editor-> Merge Queries as New, do click the Fuzzy Match option.

     

    After merged the table will be like below, then applied&close.

     

    Create a measure using DAX below and drag Job, Hours and measure in the cluster column chart.

     

     

    You can also refer to the appendix.

     

    Community Support Team _ Jimmy Tao

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.