Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have 2 tables; one give the quoted time to complete a certain activity, and the other is actual time spent on the same activity. The second table is live data from timesheets. They give a customer name, activity name, and number of hours spent/quoted for that activity.
Time Quoted Table:
Customer | Activity | Hours |
CompanyA | Build | 20 |
CompanyA | Test | 10 |
CompanyB | Build | 40 |
CompanyB | Test | 20 |
CompanyC | Build | 50 |
CompanyC | Test | 30 |
Timesheet Table:
Customer | Activity | Hours |
CompanyA | Build | 5 |
CompanyA | Build | 5 |
CompanyA | Test | 9 |
CompanyB | Test | 10 |
CompanyB | Test | 10 |
I have linked the tables and can compare the two side by side. Is it possible to give the time spent (table 2) as a percentage of the time quoted (table 1)?
In the second table, the same company/activity combination could appear more than once so it would need to be the sum of all relevant lines. For example, for the Build Phase for CustomerA, the time spent is 50% of the quoted time.
Thank you
Solved! Go to Solution.
Try
new column in Timesheet = sumx(filter('Time Quoted','Time Quoted'[Customer]=Timesheet[Customer]
&& 'Time Quoted'[Activity]=Timesheet[Activity] ),'Time Quoted'[Hours])
Try
new column in Timesheet = sumx(filter('Time Quoted','Time Quoted'[Customer]=Timesheet[Customer]
&& 'Time Quoted'[Activity]=Timesheet[Activity] ),'Time Quoted'[Hours])
Thank you @amitchandak it works! I changed the result slightly to give the result of time spent as percentage of the quoted amount, but otherwise does exactly what I needed 🙂
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
96 | |
95 | |
80 | |
74 | |
66 |
User | Count |
---|---|
130 | |
106 | |
105 | |
86 | |
72 |