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

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

Reply
fstupot
Helper II
Helper II

trying to add fixed value to groups

hi all,

 

would really appreciate some help, ive been teaching myself powerbi for a week now and have hit a  brick wall

 

i am trying to show how much it costs to carry out some work per hour.

 

i have a long list of codes i have grouped into different work types as they all have different costs.

 

for the three work groups i have created i want to muliply by an hourly materials rate and then also add a fixed salary rate for the hour on there.

 

when i use "quick measure" to multiply the material costs (i have created them on a seperate table with the relevant user group name) with the meters worked.......it only lets me multiply the sum of all the use group material costs.

 

i know i am doing something very wrong, any help i would really appreciate]

 

lucy x

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @fstupot ,

Could you please provide some sample data in your model and your expected result? The field hourly rate is existed field in table or it need to be added into table? Not sure whether the below measure is what you want or not...

Material costs = MAX('_Work'[materials])*SWITCH(MAX('_Work'[work type]),"cut and break",50,"planer",51,"velocity",52)

fixed values.JPG

Best Regards

Rena

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi Lucy, 

 

Have you created a relationship yet using the modelling tab? 

 

Karlos_0-1595439603622.png

 

If not. Go there, and you'll need to link the datasets. so for example, if both datasets are related by dragging one column to the other. 

 

then try again 

 

thank you

 

thats really useful, however when i use quickmeasure to multiply hours worked by the below "material cost" and "hour cost"....it still just says that i can only use the SUM of all the material/hourly costs

 

work typematerialshourly rate
planer1750
cut and break1751
velocity1552

 

really appreciate all the help guys xxx

Anonymous
Not applicable

Hi @fstupot ,

Could you please provide some sample data in your model and your expected result? The field hourly rate is existed field in table or it need to be added into table? Not sure whether the below measure is what you want or not...

Material costs = MAX('_Work'[materials])*SWITCH(MAX('_Work'[work type]),"cut and break",50,"planer",51,"velocity",52)

fixed values.JPG

Best Regards

Rena

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