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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Mani_1
Frequent Visitor

Adding working days to a date

Hi,

How can i add 13 working days(i.e only weekdays ) to the date of arrival for the dax below?

Date of del =
IF(
[bar] = "Ex",
IF(
ISBLANK('Table1'[Date - Departure (ETD)].[Date]),
BLANK(),
'Table'[Date - Departure (ETD)].[Date] + 7
),
IF(
[bar] = "Ey",
IF(
ISBLANK('Table1'[Date - Arrival (ETA)].[Date]),
BLANK(),
'001-statistik'[Date - Arrival (ETA)].[Date] + 13
),
IF(
[bar] = "Ez" ,
IF(
ISBLANK('Table1'[Date - Arrival (ETA)].[Date]),
BLANK(),
'Table1'[Date - Arrival (ETA)].[Date] + 16
),
BLANK()
)
)
)

Thanks,

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi  @Mani_1 ,

 

You need to create a calendar table:

Calenar_table =
var _table=
CALENDAR(
    DATE(2023,1,1),DATE(2023,12,31))
var _table1=
FILTER(
    _table,
    NOT(
    WEEKDAY(
        [Date],2)) in {6,7}
)
var _table2=
ADDCOLUMNS(
    _table1,"rank",RANKX(_table1,[Date],,ASC))
return
_table2

vyangliumsft_0-1692862130747.png

 

To create a calculated column:

add13 =
MAXX(
    FILTER(ALL('Calenar_table'),'Calenar_table'[rank]=
    MAXX(
    FILTER(ALL('Calenar_table'),
    'Calenar_table'[Date]=EARLIER('Table'[Date - Departure (ETD)])),[rank])+13),[Date])

vyangliumsft_1-1692862130748.png

 

Put it into your Dax according to your needs

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Idrissshatila
Super User
Super User

Hello @Mani_1 ,

 

Refer to this solution https://community.fabric.microsoft.com/t5/Desktop/Add-working-days-to-a-date/m-p/146945

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote For my Idea💡

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Hello @Idrissshatila ,

It is not the solution in my case, please check

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