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

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

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors