This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi,
Can someone help me? I have a table containing information on emails received. Date/Time etc. I need to create a column/measure on Power Bi where it will filter only to show emails received 'After Hours' Between 5pm and 9am. This must also include weekends and Public Holidays.
Solved! Go to Solution.
@lennox25 Try:
Column =
VAR __DateTime = [DateTimeColumn]
VAR __Hour = HOUR(__DateTime)
VAR __Result = IF( __Hour >= 17 || __Hour < 9 || WEEKDAY(__DateTime,2) > 5,1,0)
RETURN
__Result
@lennox25 Try:
Column =
VAR __DateTime = [DateTimeColumn]
VAR __Hour = HOUR(__DateTime)
VAR __Result = IF( __Hour >= 17 || __Hour < 9 || WEEKDAY(__DateTime,2) > 5,1,0)
RETURN
__Result
@Greg_Deckler Is it possible to add to this by including Public Holidays? Thanks
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 28 | |
| 28 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 66 | |
| 36 | |
| 33 | |
| 26 | |
| 24 |