Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello,
Can anyone correct the last line of my DAX formula?
var Work_Days =
CALCULATE(
DISTINCTCOUNT('July 2021'[Date]),
FILTER(
'July 2021',
'July 2021'[Time code] <> "PH"
&& WEEKDAY('July 2021'[Date],2) < 6
))
VAR WFW = SUMX(FILTER('July 2021','July 2021'[Project Name]="WFW"), 'July 2021'[Hours])
VAR emp_count = DISTINCTCOUNT('July 2021'[Employee Name])
RETURN
(((emp_count * Work_Days * 8.5) - WFW)/ emp_count * Work_Days * 8.5)
Solved! Go to Solution.
@TinyElephant , what is the issue you are facing
try like
RETURN
divide(((emp_count * Work_Days * 8.5) - WFW), emp_count * Work_Days * 8.5)
@TinyElephant , what is the issue you are facing
try like
RETURN
divide(((emp_count * Work_Days * 8.5) - WFW), emp_count * Work_Days * 8.5)