Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
is there a better way to do this?
Solved! Go to Solution.
Hi, @Casperserven1 ;
You could try it.
1_EmployeeCount =
-- count the number of Employees in filtering out holiday dates
CALCULATE (
SUM ( CumulativeData[Person Count] ),
FILTER (
CalCumulative,
NOT ( CalCumulative[WeekStarting] )
IN {
DATEVALUE ( "20/12/2021" ),
DATEVALUE ( "27/12/2021" ),
DATEVALUE ( "17/01/2022" ),
DATEVALUE ( "03/05/2021" ),
DATEVALUE ( "31/05/2021" ),
DATEVALUE ( "11/04/2022" ),
DATEVALUE ( "30/08/2021" ),
DATEVALUE ( "18/04/2022" ),
DATEVALUE ( "02/05/2022" ),
DATEVALUE ( "23/05/2022" ),
DATEVALUE ( "03/01/2022" )
}
&& CumulativeData[Employee Type] IN { "Employee", "Ex-employee" }
)
)
and if you have more logic about datevalue, could you share it?
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Casperserven1 ;
You could try it.
1_EmployeeCount =
-- count the number of Employees in filtering out holiday dates
CALCULATE (
SUM ( CumulativeData[Person Count] ),
FILTER (
CalCumulative,
NOT ( CalCumulative[WeekStarting] )
IN {
DATEVALUE ( "20/12/2021" ),
DATEVALUE ( "27/12/2021" ),
DATEVALUE ( "17/01/2022" ),
DATEVALUE ( "03/05/2021" ),
DATEVALUE ( "31/05/2021" ),
DATEVALUE ( "11/04/2022" ),
DATEVALUE ( "30/08/2021" ),
DATEVALUE ( "18/04/2022" ),
DATEVALUE ( "02/05/2022" ),
DATEVALUE ( "23/05/2022" ),
DATEVALUE ( "03/01/2022" )
}
&& CumulativeData[Employee Type] IN { "Employee", "Ex-employee" }
)
)
and if you have more logic about datevalue, could you share it?
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
77 | |
77 | |
68 | |
67 | |
49 |
User | Count |
---|---|
108 | |
105 | |
93 | |
83 | |
64 |