Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
rodfernandez
Helper I
Helper I

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
v-yuta-msft
Community Support
Community Support

@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
v-yuta-msft
Community Support
Community Support

@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.

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.