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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have a calendar table with the following fields
Date | Index
I then have a table called Holidays with the fields
From | To
There are inactive relationships between the from and to in the holiday table to the date field in the calendar table.
How would I go about calculateing the days between using the index field for 'to' - index field from'from'.
Thanks
Solved! Go to Solution.
Hi @Anonymous,
What does your data look like? Please check out the demo in the attachment.
It could be a calculated column like this.
days =
CALCULATE (
SUM ( 'Calendar'[Index] ),
FILTER ( 'Calendar', 'Calendar'[Date] >= [From] && 'Calendar'[Date] <= [To] )
)
Best Regards,
Dale
HI @Anonymous,
Have you tried creating a new column in Holiday table?:
Column = DATEDIFF(Table3[From], Table3[To], DAY)
Or a measure:
Measure = DATEDIFF(MIN(Table3[Column1]), MIN(Table3[Column2]),DAY)
Hi @Anonymous,
What does your data look like? Please check out the demo in the attachment.
It could be a calculated column like this.
days =
CALCULATE (
SUM ( 'Calendar'[Index] ),
FILTER ( 'Calendar', 'Calendar'[Date] >= [From] && 'Calendar'[Date] <= [To] )
)
Best Regards,
Dale
Thanks Dale will have a look into that.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 62 | |
| 50 | |
| 45 |