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
LucienF38
Helper I
Helper I

Modify date format // Create column with working days

Hello everyone,

 

Firts of all, please pardon me for my approximative english 😉

 

I have 2 issues concerning a date :

 

1) The dates are downloaded from an SQL server. They are in the following format "20190711" (here, for July the 11th of 2019" and I would like to change it into a common form such as 11/07/2019. I tried with "column form example" and it doesn't work. How can I do this ?

 

2) After resolving the first issue i'd like to create a column based on the data of 2 others : Purchase Order Date and Entry Date which represent respectively the date at which we received the order and the date on which we entered this order in our system. I would like to write "OK" if the entry has been done within 2 working days and "NON OK" if the entry has been done in more than 2 days. The issue is the non working days (saturday and sunday). How can i resolve these problems ? 

 

 

Thanks for helping 🙂

 

1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

1.) 

Column = LEFT(Table2[Column1] , 4 ) & "-" & RIGHT(LEFT(Table2[Column1] , 6),2) & "-" & RIGHT(Table2[Column1] , 2)

2.) 
Calculatieng the difference between two dates where you exclude weekends is abit more complicated. Start by creating a calendartable and using the weekday() syntax there to indentify which days that are weekends. 


Connect on LinkedIn

View solution in original post

1 REPLY 1
tex628
Community Champion
Community Champion

1.) 

Column = LEFT(Table2[Column1] , 4 ) & "-" & RIGHT(LEFT(Table2[Column1] , 6),2) & "-" & RIGHT(Table2[Column1] , 2)

2.) 
Calculatieng the difference between two dates where you exclude weekends is abit more complicated. Start by creating a calendartable and using the weekday() syntax there to indentify which days that are weekends. 


Connect on LinkedIn

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