cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
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.

 

 

View solution in original post

1 REPLY 1
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.

 

 

View solution in original post

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 60 members 1,173 guests
Please welcome our newest community members: