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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
DennisSchlein
Helper III
Helper III

Adding x working days to a input date

Hi 

I have a calculated column where I want to add X working days to my imut date.

Basicly its like:

Input Date:     BaseData[EventTime (CMR_Close)] - ex.: 01-11-2023
Adder:     BaseData[Report WorkDays] - Ex.: 3

Expected Result: 06-11-2023 (Since day 3 is saturday)

How do I change the bold text to be workdays in stead?


Report Ready Date =
    BaseData[EventTime (CMR_Close)] +
    BaseData[Report WorkDays] +
    COUNTX(
        FILTER(
            Holidays,
            Holidays[COUNTRYCODE] = BaseData[recipient_country_code] &&
            Holidays[HolidayDate] >= BaseData[EventTime (CMR_Close)] &&
            Holidays[HolidayDate] <= BaseData[EventTime (Transit)] &&
            WEEKDAY(Holidays[HolidayDate] - 1) < 6
        ),
        Holidays[COUNTRYCODE]
    )
2 REPLIES 2
DennisSchlein
Helper III
Helper III

Hi @Anonymous 

I will create one 🙂 

I have this piece of code that is not giving errors, but not the expected result:

 

TEST 2 = 
VAR CurrentDate = TODAY()
VAR NextWorkingDates = 
    FILTER( 
        ALL( DateTable[Date] ),
        DateTable[Date] > CurrentDate && RELATED(DateTable[Working Day]) = TRUE()
    )

VAR Next10WorkingDays = TOPN( 11, NextWorkingDates, 'DateTable'[Date], ASC )
VAR Result = MAXX(Next10WorkingDays, 'DateTable'[Date])
RETURN Result




image.png


This is diffently not what I expected to get.

Basicly I want to have an input data - expected project workdays - and then expected ready date.

Let me know if I make no sense 🙂

I Created a sample here:
https://www.transfernow.net/dl/20240216cAtDviKK

 

Anonymous
Not applicable

Hi, @DennisSchlein 

Can you provide some sample data or PBIX files?

And don't give out private information and personal information.

 

Best Regards

Yongkang Hua

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.