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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Shree_185
Helper I
Helper I

How to split date calculated column

Hello, I need help. I have calculated column "Pending Days" which calculates mins to d:hh:mm:ss format.

 

Ex - 1 day 06:20:12, I want to split it to 1.

input                output

1 day 06:20:121
23 day 05:20:1223
1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @Shree_185 

 

Try this code to add a new calculated column:

New Column = 
Var _A = LEN([input])
return
left([input],_A-13)

 

Output:

VahidDM_0-1636671913921.png

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!


LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

View solution in original post

1 REPLY 1
VahidDM
Super User
Super User

Hi @Shree_185 

 

Try this code to add a new calculated column:

New Column = 
Var _A = LEN([input])
return
left([input],_A-13)

 

Output:

VahidDM_0-1636671913921.png

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!


LinkedIn: 
www.linkedin.com/in/vahid-dm/

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.