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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
anoomohan
Helper III
Helper III

extract date

Pleaes help mewith the right answer for below - different sites are showing different answer

 

 

 

anoomohan_0-1729010250725.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for the reply from rajendraongole1 and ray_aramburo.

 

Hi @anoomohan ,

 

During my testing, both C and D options were able to get date columns with a hierarchical structure. The difference is that C will split the column into date and visual (the question doesn't talk about whether the time and original data are still needed), while column D needs to be extracted with the date in text form, which still needs to be formatted. If a correct answer is needed, then C is straightforward to get the desired result, while D requires an additional step, so I would choose C.

 

Best Regards,
Zhu

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Thanks for the reply from rajendraongole1 and ray_aramburo.

 

Hi @anoomohan ,

 

During my testing, both C and D options were able to get date columns with a hierarchical structure. The difference is that C will split the column into date and visual (the question doesn't talk about whether the time and original data are still needed), while column D needs to be extracted with the date in text form, which still needs to be formatted. If a correct answer is needed, then C is straightforward to get the desired result, while D requires an additional step, so I would choose C.

 

Best Regards,
Zhu

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

ray_aramburo
Super User
Super User

The simplest step is to extract the first 11 characters (answer D) but this will work 100% only with the assumption that all the values within that column have the same format





Did I answer your question? Give your kudos and mark my post as a solution!

Proud to be a Super User!





rajendraongole1
Super User
Super User

Hi @anoomohan - correct answer is: Apply a transformation to extract the last 11 characters of the Logged column and set the data type of the new column to Date.

Explaination: The column "Logged" contains both date and time.To analyze by date, you should extract only the date portion from the string (first 10 characters).

 

 

Plea





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





also u mentioned to extract last 11 characters - 2018-12-31 at 8:59 

is this including spaces - here if we select last 11 characters - will it be "-31 at 8:59" ; and we will have only 2018-12 left? 

right answer given is to split the column with at as delimiter

 

in fact, different sites give different answer for this question 

 

anoomohan_0-1729181107204.png

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.