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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Multiply with averages

Hi all,

 

I have the following question.

I have trouble to multiply an average with an absolute number, I think it is because there is no link between the tables posible.

 

I have the following tables:

Hours per person per location

Personel nrLocation 1Location 2Location 3
110 10
21010 
3101010

 

Average cost per hour per person

Personel nr.Average cost per hour
120
222
325

 

I try to calculate the cost per location. I thought I could calculate the hours multiplied by the average costs, but it doesn't work.

 

There is no link from the cost per personel and the the locations.

 

Can someone help me?

 

Kind regards,

Stein

1 ACCEPTED SOLUTION
rbriga
Impactful Individual
Impactful Individual

My suggestion:

  1. Use the Query Editor to unpivot the Hours per person per location table. the result should be:
    Personal nrLocationHours
    1Location 110
    1Location 310
    2Location 1

    10

  2. Connect the now-unpivoted table to the Average cost per hour per person table by Personal nr.
  3. Create a Measure:

Cost per Location=

SUMX('Hours per person per location'

SUM('Hours per person per location'[Hours]*RELATED('Average cost per hour per person'[Average cost per hour])

)

Give it a try.

 

-------------------------
Data analyst by day, hockey goalie by night.
Did I help? Then please hit that "kudos" or "accept as a solution" button!

View solution in original post

1 REPLY 1
rbriga
Impactful Individual
Impactful Individual

My suggestion:

  1. Use the Query Editor to unpivot the Hours per person per location table. the result should be:
    Personal nrLocationHours
    1Location 110
    1Location 310
    2Location 1

    10

  2. Connect the now-unpivoted table to the Average cost per hour per person table by Personal nr.
  3. Create a Measure:

Cost per Location=

SUMX('Hours per person per location'

SUM('Hours per person per location'[Hours]*RELATED('Average cost per hour per person'[Average cost per hour])

)

Give it a try.

 

-------------------------
Data analyst by day, hockey goalie by night.
Did I help? Then please hit that "kudos" or "accept as a solution" button!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors