📜  power BI 查找员工缺勤天数 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:29.043000             🧑  作者: Mango

代码示例1
/*
First, create a table with just the Equipment/Staff ID's in it.
Then used the CROSSJOIN() function to create a cartesian product table of the dates 
and the equipment/ staff. 
*/

All Dates And Equipment = CROSSJOIN('calendar','Equipment')

/* 
I then added a column to the "All Dates and Equipment" table:
*/

Was Rented = if(isblank(LOOKUPVALUE('Vehicle Information'[Charge Date],'Vehicle Information'[Charge Date],[Date],'Vehicle Inf