Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
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 same row by the applicable rate for i. the specific client and ii. specific role/subrole. The challenges that I encounter are:
See the image below for sample data. I have added the columns L-O to simulate the exercise in excel.
This is the formula/relationship I'm ultimately trying to achieve in PowerBI
See below a sample image for the Contract Pricing mapping table per client
@v-eqin-msft - would be great if you can help me on this one too!
Thank you,
Salvador
Solved! Go to Solution.
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.
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.
Hi @sbenzaquen ,
512.5 is 2.05*250
Subrole is Junior, but why does the rate choose Daily Rate CI?
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.
Hi Stephen,
Thanks again for taking a look.
I just looked more closely at the formula, and as you pointed out, it is wrong. The formula is meant to link "Structuring"&"Junior" with the appropriate mapping key in the contract pricing tab (column C to E) which for this particular case should be column C.
Let me know if you need me to amend the online tab, but hopefully it should be fine.
Thanks,
Salvador
I've now amended the online spreadsheet with the correct formula. Would you be able to apply the same rationale in powerbi?
thanks!
Hi @sbenzaquen ,
Sorry for my late reply.
It’s a bit cumbersome to manually input the picture data, please share me with your pbix file from your Onedrive for Business.
And what expected result do you want?
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.
Hi Stephen,
Thanks for taking a look.
See google drive link for the sample data: https://docs.google.com/spreadsheets/d/1Aiz-l2pB6nY7xftwnXSOw3xrjNsxN9Hh4NVohtB6hAk/edit?usp=sharing
The expected result is to have an additional column with the billable amount relating to each entry. The idea is to be able to aggregate the amount by project/end of month.
Let me know if there is anything else i can help with.
thanks,
Salvador
thank you,
salvador
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
90 | |
88 | |
83 | |
64 | |
49 |
User | Count |
---|---|
126 | |
110 | |
87 | |
70 | |
66 |