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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

DDLINE CHECKING

Newbie here,

 

Is there any way to get the DDLINE based on a filtered calendar table.

 

For example:

 

CALENDAR TABLE (filtered all the weekends and holidays)

Capture.PNG

 

 

 

 

 

 

 

 

 

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

 

Capture.PNG

 

Thank you so much for your help! Rally appreciate it 🙂 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

You could add a new index column for the calendar table.

6.PNG

Then create below formulas.

Column = LOOKUPVALUE('CALENDAR'[Index2],'CALENDAR'[date],OUTPUT[date])+OUTPUT[duration]

Column 2 = CALCULATE(MAX('CALENDAR'[date]),FILTER(ALL('CALENDAR'),'CALENDAR'[Index2] = OUTPUT[Column]))

 7.PNG

 

Best Regards,

Jay

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Anonymous ,

 

You could add a new index column for the calendar table.

6.PNG

Then create below formulas.

Column = LOOKUPVALUE('CALENDAR'[Index2],'CALENDAR'[date],OUTPUT[date])+OUTPUT[duration]

Column 2 = CALCULATE(MAX('CALENDAR'[date]),FILTER(ALL('CALENDAR'),'CALENDAR'[Index2] = OUTPUT[Column]))

 7.PNG

 

Best Regards,

Jay

amitchandak
Super User
Super User

@Anonymous , if you want to add working days, refer to my blog

 

Traveling Across Workdays - What is next/previous Working day
https://community.powerbi.com/t5/Community-Blog/Travelling-Across-Workdays-Decoding-Date-and-Calendar-4-5-Power/ba-p/1187766

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable


Hi @amitchandak ,

 

Thank you for your insights. However, i don't like to add working days. I just wanted to count the days starting from ENDORSED DATE of the project until it's ddline based on DURATION column . but i want to count it based on another CALENDAR TABLE that has no weekends and holidays . so if you can see the orange table above . that is the calendar table that has already no weekends and holidays and I've filtered it already in Power Query.

@Anonymous , A new column in the second table

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

 

In case the first table has a flag for the workday add that to calculation

 

 

Second page of attached file shows measure way

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak ,

 

Thank you again for your input. However, the output that i am looking for is not the same output from your query.

 

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 patient and inputs @amitchandak  🙂 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors