The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi Experts,
I am required to create a measure for calculating number of people from hours spent. the challenge is every day is 10.5 hours except friday which is 7.6 hours. How do I specify that in my measure?
My current measure is straight forward
This worked but reduced my other days numbers.
My Equation:
the equation you provided:
No Of Labor = SUM(Database[HoursWorked]) / (VALUE(10.5)-IF(WEEKDAY(MAX(Database[Work Date]),2)=5,2.9,0))
No Of Labor = DIVIDE(SUM(Database[HoursWorked]) ,10.5-IF(WEEKDAY(MAX(Table[Date]),2)=5,2.9,0))
Thanks but still not able to understand. This is how my table looks like, and how will I put 7.6 hrs condition then?
No Of Labor = SUMX(SUMMARIZE(Database,Database[HoursWorked],Database[Work Date),DIVIDE(Database[HoursWorked] ,10.5-IF(WEEKDAY(Database[Work Date],2)=5,2.9,0)))