Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
Could somebody please help me with my syntax? The first part works fine, but the Bank Holiday part won't seem to count properly.
I want it to look at all start dates and if it lands on a date that is in the bank holiday table, then display 0.
IF( MAX('Booking Scenarios'[New Start Date]) = MAX('Booking Scenarios'[New End Date])
&&
CALCULATE(COUNT([New Start Date]), FILTER('Bank Holidays', 'Bank Holidays'[Date] < 1)),1,0)
Solved! Go to Solution.
@Anonymous
Try like: (
Replace Table and Column names
Measure:
COUNTROWS(
INTERSECT(VALUES('Table1'[Date]),VALUES('Table2'[DATE]))
)
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
I accept KUDOS ☺
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Anonymous
Try like: (
Replace Table and Column names
Measure:
COUNTROWS(
INTERSECT(VALUES('Table1'[Date]),VALUES('Table2'[DATE]))
)
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
I accept KUDOS ☺
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Anonymous
You are welcome!
________________________
Did I answer your question? Mark this post as a solution, this will help others!.
I accept KUDOS 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@Anonymous , have flag that 1 on back holiday 'and try like
if(CALCULATE(COUNT([New Start Date]), FILTER('Bank Holidays', 'Bank Holidays'[Flag] = 1)) >=1,1,0)
or
if(CALCULATE(COUNT([New Start Date]), FILTER('Bank Holidays', 'Bank Holidays'[Flag] = 1)) >=1,1,0) +0
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
70 | |
37 | |
29 | |
26 |
User | Count |
---|---|
91 | |
49 | |
45 | |
38 | |
37 |