Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
I have a Working Days column that produces True / False in my Calendar that works perfectly fine:
Working Days = NOT WEEKDAY('Date'[Date]) IN {1,7}
I would like to incorporate my Public Holidays calendar to the column.
I have tried adding RELATED (see below) but that doesn't work
Working Days = NOT WEEKDAY('Date'[Date]) IN {1,7} &&
RELATED('bank-holidays'[Public Holiday])
Does anyone know how to combine them?
Thanks
Solved! Go to Solution.
Try this calculated column in your Date table. It requires a 1:* relationship between Date and bank-holidays.
Working Days =
NOT WEEKDAY ( 'Date'[Date] ) IN { 1, 7 } && ISBLANK ( COUNTROWS ( RELATEDTABLE( 'bank-holidays' ) ) )
Proud to be a Super User!
The two expressions are evaluated independently. The first one works as described (check if Date is a weekend). The second one checks if the date in the current row of the Date table exists in bank-holidays table; if it doesn't, then it's considered a working day (assuming it's not a weekend). The assumption is that bank-holidays contains only holidays. Hope that helps.
Proud to be a Super User!
Try this calculated column in your Date table. It requires a 1:* relationship between Date and bank-holidays.
Working Days =
NOT WEEKDAY ( 'Date'[Date] ) IN { 1, 7 } && ISBLANK ( COUNTROWS ( RELATEDTABLE( 'bank-holidays' ) ) )
Proud to be a Super User!
Can you briefly explain how this works please?
My understanding is that NOT produces a list of FALSE values if the Date is a Weekend (not a work day), then this list is used as Lookup to the Bank Hoilday table where all NONBLANKS (public holidays) are also counted as FALSE - the 2 are then combined.
Is that correct - does it make sense?
The two expressions are evaluated independently. The first one works as described (check if Date is a weekend). The second one checks if the date in the current row of the Date table exists in bank-holidays table; if it doesn't, then it's considered a working day (assuming it's not a weekend). The assumption is that bank-holidays contains only holidays. Hope that helps.
Proud to be a Super User!
yes thank you, much appreciated!
That works perfectly - thank you!
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 52 | |
| 45 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 108 | |
| 108 | |
| 39 | |
| 33 | |
| 25 |