Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
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
Hi thanks in advance for any help.
Background:
I am building a project management dashboard with the aim of this piece to accurately show the booked costs and planned costs of current projects. There are two tables a booking table and a planning table and both of these tables work in a similar way with a month, project number, number of hours and a worker ID.
My issue:
The cost table has Worker ID, valid from and cost. The valid from is a period date in the format YYYY0MM - all of the tables use this, I have steps to convert it to a normal date everywhere.
I think I can do a merge to find the costs in the bookings and planning tables but I am not sure how to dynamically expand the costs table out and fill for each month/period to create something that can be merged.
Nice to have: as the projects are opened and the current projects change, the table as a minimum dynamically grows forwards in time based on the project planned furthest into the future.
Example of the cost table
| EmployeeNumber | ValidFrom | Hourlyrate |
| 1001 | 2023009 | 90 |
| 1001 | 2022007 | 80 |
| 1001 | 2020010 | 70 |
| 1002 | 2023008 | 90 |
| 1002 | 2022007 | 75 |
Solved! Go to Solution.
Hi @Jamez_P
You can refer to the following ways
1.Use merge queries in power query, find the same column among the tables, e.g the [employeeid] column in cost table and [employeeid] column in booking table, then expand it. you can refer to the following link.
Merge queries overview - Power Query | Microsoft Learn
2.If you have the relationship among tables, you can use calculate() function and related() function to find the related value from another table.
RELATED function (DAX) - DAX | Microsoft Learn
If the following above cannot meet your requirement, can you provide some sample data of the tables and the output picture you want?
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Jamez_P
You can refer to the following ways
1.Use merge queries in power query, find the same column among the tables, e.g the [employeeid] column in cost table and [employeeid] column in booking table, then expand it. you can refer to the following link.
Merge queries overview - Power Query | Microsoft Learn
2.If you have the relationship among tables, you can use calculate() function and related() function to find the related value from another table.
RELATED function (DAX) - DAX | Microsoft Learn
If the following above cannot meet your requirement, can you provide some sample data of the tables and the output picture you want?
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 33 | |
| 31 | |
| 29 |