The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi everyone,
I am trying to show certain days on this column as working day, but it keeps showing as weekend. Can someone advise on how I can correct this to show these days as a working day? Please advise.
WorkingDay 2 =
SWITCH(
TRUE(),
ISBLANK('Calendar'[HolidayColumn]) && 'Calendar'[Day of week] <= 5, "working day",
ISBLANK('Calendar'[HolidayColumn]) && 'Calendar'[Day of week] >= 6, "weekend",
'Calendar'[Date] = DATE(2024, 6, 22) || 'Calendar'[Date] = DATE(2024, 6, 29) || 'Calendar'[Date] = DATE(2024, 7, 13) || 'Calendar'[Date] = DATE(2024, 7, 20), "working day",
"Holiday"
)
Thank you!
Solved! Go to Solution.
Hi @sraj - slight adjustment of your calculation as below:
WorkingDay 2 =
SWITCH(
TRUE(),
'Calendar'[Date] = DATE(2024, 6, 22) ||
'Calendar'[Date] = DATE(2024, 6, 29) ||
'Calendar'[Date] = DATE(2024, 7, 13) ||
'Calendar'[Date] = DATE(2024, 7, 20), "working day",
ISBLANK('Calendar'[HolidayColumn]) && 'Calendar'[Day of week] <= 5, "working day",
ISBLANK('Calendar'[HolidayColumn]) && 'Calendar'[Day of week] >= 6, "weekend",
"Holiday"
)
Hope it works
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
Hi @sraj - slight adjustment of your calculation as below:
WorkingDay 2 =
SWITCH(
TRUE(),
'Calendar'[Date] = DATE(2024, 6, 22) ||
'Calendar'[Date] = DATE(2024, 6, 29) ||
'Calendar'[Date] = DATE(2024, 7, 13) ||
'Calendar'[Date] = DATE(2024, 7, 20), "working day",
ISBLANK('Calendar'[HolidayColumn]) && 'Calendar'[Day of week] <= 5, "working day",
ISBLANK('Calendar'[HolidayColumn]) && 'Calendar'[Day of week] >= 6, "weekend",
"Holiday"
)
Hope it works
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
82 | |
77 | |
46 | |
39 |
User | Count |
---|---|
137 | |
108 | |
69 | |
64 | |
53 |