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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

GET DEADLINE BASED ON FILTERED CALENDAR TABLE

Hi Team,

 

Newbie here.

 

I would like to ask if there is a way to get the deadline based on a filtered calendar table.

 

Please see below dataset.

 

OUTPUT TABLE: (get the DEADLINE based on the calendar table below that has no weekends and holidays)

 

tacoguja_0-1618187459455.png

 

CALENDAR TABLE: (filtered all the weekends and holidays)

 

tacoguja_1-1618187498423.png

 

What I want is if a project is given in blue table for example project 1, it was ENDORSED on 4/2/2021, there is a given period of days for it to be finished, that is the DURATION column, so the project 1 should be finished 5 days after the ENDORSED DATE. What I want is to be able to get the DEADLINE on the project based on the DURATION given but I would like to exclude the weekends and holidays. Thats why I have the ORANGE TABLE (Calendar Table) that has no weekends and holidays already. I just wanted the DATE that the project should be finished based on the CALENDAR TABLE (Orange table above).

 

Thank you so much for your help! This will be a big help for my project that I am currently working on 🙂

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

Please correct me if I wrongly understood your question.

I assume you have an additional calendar table created in the Power Query Editor that the weekends are filtered out, for instance. In here, I believe you can easily create one more column = Index Column.

By using this index column, I made the below picture and the sample pbix file's link down below.

Please check if those are what you are looking for.

By the way, I do not have your area's holiday information, so I just considered filtering out the weekends.

 

Picture1.png

 

https://www.dropbox.com/s/012my6h9azhgorc/tacoguja.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi, @Anonymous 

Please correct me if I wrongly understood your question.

I assume you have an additional calendar table created in the Power Query Editor that the weekends are filtered out, for instance. In here, I believe you can easily create one more column = Index Column.

By using this index column, I made the below picture and the sample pbix file's link down below.

Please check if those are what you are looking for.

By the way, I do not have your area's holiday information, so I just considered filtering out the weekends.

 

Picture1.png

 

https://www.dropbox.com/s/012my6h9azhgorc/tacoguja.pbix?dl=0 

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Anonymous
Not applicable

Hi @Jihwan_Kim ,

 

This is what I am looking for. Thank you so much for your help ! 🙂 

amitchandak
Super User
Super User

@Anonymous , Try a new column like this in Output

countx(filter(CALENDAR, CALENDAR[Date] >=Table[Date] && CALENDAR[Date] <=Table[DEDLINE]),CALENDAR[Date])

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.