The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have such case.
In calendar table i have Workday column which is calculated by below DAX:
Solved! Go to Solution.
Hi @ToKo
Sure. Nested IF statements are evaluated in order, so we can check for 2021-11-06 first, then check for Saturday/Sunday:
Workday =
IF('Calendar'[Date] = DATE(2021,11,6),
1,
IF(('Calendar'[DayOfWeek]= "Sunday" || 'Calendar'[DayOfWeek]= "Saturday"),0,1)
)
Hi @ToKo
Sure. Nested IF statements are evaluated in order, so we can check for 2021-11-06 first, then check for Saturday/Sunday:
Workday =
IF('Calendar'[Date] = DATE(2021,11,6),
1,
IF(('Calendar'[DayOfWeek]= "Sunday" || 'Calendar'[DayOfWeek]= "Saturday"),0,1)
)
User | Count |
---|---|
12 | |
9 | |
6 | |
6 | |
6 |
User | Count |
---|---|
25 | |
14 | |
14 | |
9 | |
7 |