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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
ernum
Frequent Visitor

Text to Date Column with Measures

Hello all,

 

I have a date column as "Text" format as following and I need to use this data in the slicer. But first of all, I need to create a hierarchy and split "Day" - "Month" - "Year" and "Quarter"

ernum_0-1686144445953.png


My data column seems like that in the "Data Sidebar" and I want to convert second one with Hierarchy.

from ernum_1-1686144561170.png 

to 

ernum_2-1686144624397.png


But I can't use data transformation because of I don't have access the data storage server. That's why, I can just use add new column with measure.

 

Can I solve this problem using "New Measure, New Column"? Can I separate the dates? If yes, how can I do it?

 

Thank you,

1 ACCEPTED SOLUTION
Kishore_KVN
Super User
Super User

Hello @ernum 

Here is the solution. Use 'LEFT' DAX function to extract date in new column and then change the new column datatype to Date.

Column DAX looks like this:

Date = LEFT(Sheet1[OpenedAt],10)

 

Output looks like this:

Kishore_KVN_0-1686145646125.png

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

 

View solution in original post

2 REPLIES 2
Kishore_KVN
Super User
Super User

Hello @ernum 

Here is the solution. Use 'LEFT' DAX function to extract date in new column and then change the new column datatype to Date.

Column DAX looks like this:

Date = LEFT(Sheet1[OpenedAt],10)

 

Output looks like this:

Kishore_KVN_0-1686145646125.png

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

 

Hello @Kishore_KVN 

Thanks a lot! It works.. 

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.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors