Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hey all, I'm working on a project management dashboard. I can't show due to sensitive data. I can try to create a mockup if needed. The main tables I have are:
All of the tables talk to each other in a 1->many relationship except Forecast and Actuals. Thanks to this wonderful community, this was resolved by showing me how to better manage table relationships.
Now I'm trying to create 3 new calculated columns:
Actuals_Cost_Extract = CALCULATE(FIRSTNONBLANK('IAT All Worker Timesheet Actual'[Actuals Cost], 1),
FILTER(ALLNOBLANKROW('IAT All Worker Timesheet Actual'),'IAT All Worker Timesheet Actual'[Date] = 'Forecast Hours by Worker & Project'[Date]))
Here is a quick mockup of what I am trying to produce. Currently, I cannot get Remaining Forecast Cost to show up anywhere close to accurate.
| Worker | Project | Forecasted Hours | Date | Rate | Forecasted_ Cost | Actuals_Cost_ Extract | Remaining_Forecast_ Cost |
John Smith | Project 1 | 2 | Jan 05, 2022 | $100 | $200 | $200 | |
| John Smith | Project 1 | 2 | Jan 06, 2022 | $100 | $200 | $100 | $100 |
| John Smith | Project 1 | 2 | Mar 10, 2022 | $100 | $200 | $200 | |
| Bob Bob | Project 1 | 3 | Jan 05, 2022 | $100 | $300 | $300 | |
| Bob Bob | Project 1 | 3 | Jan 06, 2022 | $100 | $300 | $100 | $200 |
| Bob Bob | Project 1 | 3 | Mar 10, 2022 | $100 | $300 | $300 |
Solved! Go to Solution.
Hi, @Anonymous
Please check the following methods.
Column:
Forecasted_Cost = [Forecasted_Hours]*[Rate]Actuals_Cost_Extract =
CALCULATE(FIRSTNONBLANK('IAT All Worker Timesheet Actual'[Actuals Cost], 1),
FILTER(ALLNOBLANKROW('IAT All Worker Timesheet Actual'),[Date] = 'Forecast Hours by Worker & Project'[Date]
&&[Worker]=EARLIER('Forecast Hours by Worker & Project'[Worker])))Remaining_Forecast_Cost = [Forecasted_Cost]-[Actuals_Cost_Extract]
Not sure I understand correctly, is this the output you are expecting? If the method I provided above can't solve your problem, what's your expected result? Could you please provide more details for it?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
Please check the following methods.
Column:
Forecasted_Cost = [Forecasted_Hours]*[Rate]Actuals_Cost_Extract =
CALCULATE(FIRSTNONBLANK('IAT All Worker Timesheet Actual'[Actuals Cost], 1),
FILTER(ALLNOBLANKROW('IAT All Worker Timesheet Actual'),[Date] = 'Forecast Hours by Worker & Project'[Date]
&&[Worker]=EARLIER('Forecast Hours by Worker & Project'[Worker])))Remaining_Forecast_Cost = [Forecasted_Cost]-[Actuals_Cost_Extract]
Not sure I understand correctly, is this the output you are expecting? If the method I provided above can't solve your problem, what's your expected result? Could you please provide more details for it?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much!! That is exactly what I was looking for and just couldn't quite get it. I plugged your DAX into my original pbix file and it worked!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |