cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rodfernandez Frequent Visitor
Frequent Visitor

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 


Sin título.png
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]))
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Measure for multiplying values from different tables

@rodfernandez

 

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

Capture.PNG 

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

2.PNG 

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

3.PNG 

 

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 1
Highlighted
Community Support Team
Community Support Team

Re: Measure for multiplying values from different tables

@rodfernandez

 

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

Capture.PNG 

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

2.PNG 

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

3.PNG 

 

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.