Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
I have a Calendar that I've created in DAX and I want to create a column that shows "Is A Working Day"
0=Not a working day
1=Is A Working Day
I want to create a variable calculation where I can include a "Conditional If statement" including Dates in the measure to return "0" for those dates that are holidays.
Example:
5/30/2022 = 0
7/4/2022 = 0
This is how my calendar is laid out
And this is my measure for "IsWorkingDay"
I feel that I can turn this measure into variables where I can have both "IsWorkingDay" measure and the "IF statement" to create my column.
I'm still very new to creating DAX measure but I'm slowly picking it up.
The help would be greatly appreciated
Solved! Go to Solution.
Hi @SteelChampzz ,
Like this?
Try this measure:
isworkingday = IF(SELECTEDVALUE('Table'[dayname])="Sat"||SELECTEDVALUE('Table'[dayname])="Sun",0,1)
Best regards,
Community Support Team Selina zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @SteelChampzz ,
Like this?
Try this measure:
isworkingday = IF(SELECTEDVALUE('Table'[dayname])="Sat"||SELECTEDVALUE('Table'[dayname])="Sun",0,1)
Best regards,
Community Support Team Selina zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
26 | |
12 | |
11 | |
9 | |
9 |
User | Count |
---|---|
17 | |
14 | |
13 | |
13 | |
12 |