Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
gpiero
Skilled Sharer
Skilled Sharer

Hard problem for a beginner

I have a table which contain the following columns

 

pic1.JPG

 

I woulld like to calculate the number  of the working days between those days.

 

I have created a table where  I have defined my calendar according to local Holidays.

pic2.JPG

The last column contain a logical value that define how to consider that date.

 

But to be honest I am not able to find a simple way to do it.

Is there a simple solution for a beginner?

 

Thanks in advance for your help.

 

If I can...
2 ACCEPTED SOLUTIONS
Sean
Community Champion
Community Champion

@gpiero Try this... Let me know if it works.

 

Column =
CALCULATE (
    COUNTROWS ( 'Calendar Table' ),
    ALL ( 'Calendar Table' ),
    DATESBETWEEN ( 'Calendar Table'[Date], Table[Start Date], Table[End Date] ),
    'Calendar Table'[IsWorkingDay] = "Y"
)

View solution in original post

@Sean,

 

Many thanks. Your solution work perfectly and I have more opportunity to apply it again.

Man Very Happy

 

gpiero

If I can...

View solution in original post

2 REPLIES 2
Sean
Community Champion
Community Champion

@gpiero Try this... Let me know if it works.

 

Column =
CALCULATE (
    COUNTROWS ( 'Calendar Table' ),
    ALL ( 'Calendar Table' ),
    DATESBETWEEN ( 'Calendar Table'[Date], Table[Start Date], Table[End Date] ),
    'Calendar Table'[IsWorkingDay] = "Y"
)

@Sean,

 

Many thanks. Your solution work perfectly and I have more opportunity to apply it again.

Man Very Happy

 

gpiero

If I can...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.