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
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
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.

Top Solution Authors