Forum Discussion
sbenzaquen
5 years agoHelper I
Calculate billable amount by row
Hi, I'd like to estimate the billable amount/cost for each entry/row so I can sum them by end of the month. I would like to have an additional column/dax measure that multiplies the hours of the sam...
- Anonymous5 years ago
Hi sbenzaquen ,
According to the data source file you gave, I created the relationship between the tables.
billable amount = SWITCH ( MAX ( 'Harvest report - Sample Data'[Subrole] ), "Junior", MAX ( 'Harvest report - Sample Data'[Hours] ) * MAX ( 'Contract Pricing'[Daily Rate STR-Jr] ), "Senior", MAX ( 'Harvest report - Sample Data'[Hours] ) * MAX ( 'Contract Pricing'[Daily Rate STR-Sr] ), "NA", MAX ( 'Harvest report - Sample Data'[Hours] ) * MAX ( 'Contract Pricing'[Daily Rate CI] ) )You can check details from the attachment.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
5 years agoNot applicable
Hi sbenzaquen ,
According to the data source file you gave, I created the relationship between the tables.
billable amount =
SWITCH (
MAX ( 'Harvest report - Sample Data'[Subrole] ),
"Junior",
MAX ( 'Harvest report - Sample Data'[Hours] )
* MAX ( 'Contract Pricing'[Daily Rate STR-Jr] ),
"Senior",
MAX ( 'Harvest report - Sample Data'[Hours] )
* MAX ( 'Contract Pricing'[Daily Rate STR-Sr] ),
"NA",
MAX ( 'Harvest report - Sample Data'[Hours] )
* MAX ( 'Contract Pricing'[Daily Rate CI] )
)
You can check details from the attachment.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.