Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hey all,
So I have a calendar table with all the days and another column that has a DAX function doing this ( if is holiday or weekend equals 0 else 8), 8 is the standard daily work hours we have here in the company, this is working as expected, this column is called standard hours.
Aside from that, I have a table with all the employee and the hours they worked etc.
I've created a quick measure that is "sum of work hours divided by standard hours" in %, pretty simple right? But although the calculation is right, the visualization doesn't work as expected, see the image below:
So, this employee, worked 178 hours in April, in our company the standard is 5 days per week, 8 hours per day, so the math is:
5x8= 40 hours per week
4x40= 160 hours per month
So he worked 178 hours instead of the standard 160 hours for that month, this should be 110.8% (111% rounding up) but PBI is showing 10.8%.
I don't know what I'm doing wrong here.
Any thoughs?
Quick Measures are not too efficient and smart sometimes. Show us the measure created by quick measure
Total Ult. % =
DIVIDE(SUM('Hours Total'[Time (Hours)]), SUM('Calendar'[DayHours]))
Here you go, @rafaelmpsantos
Well, the measure is ok.
but try this
Total Ult. % =
DIVIDE(SUM('Hours Total'[Time (Hours)]), SUM('Calendar'[DayHours]))+1
@rafaelmpsantos the displayed numbers are right now but it broke the chart:
And if I try to do the same with "billable %", the results are very wrong, right now it should be 3% instead of 0.3% with the +1 it goes to 103%.
Thanks @Xvierlh but nothing changes, the DAX worked but it remained the same %.
Hi @GeorgesKV,
If it is convenient, could you share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)
Best Regards,
Cherry
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 |
---|---|
109 | |
102 | |
84 | |
79 | |
70 |
User | Count |
---|---|
120 | |
110 | |
95 | |
82 | |
77 |