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
Langtry
Regular Visitor

Converting Date Hour Minute dimension to useable date format (from google analytics)

Hi there!

I'm pulling in a dimension via the Google Analytics connector that gives me YYYYMMDDHHMM. Example: 202207281824

 

What's the best way to turn that in to a useable date type? I could probably do it with a bunch of split column functions, concatenation, etc. But I'd have to create those steps on all the tables. Is there formula that would worK? 


Appreciate any help you can provide.

 

Thanks,

Paul

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Langtry ,

 

Here's my steps of solution.

1.Change your column as text type.

vstephenmsft_0-1667208158739.png

 

2.Split column by number of characters.

vstephenmsft_1-1667208172362.png

vstephenmsft_3-1667208207399.png

vstephenmsft_2-1667208195945.png

 

3.Still make the new columns are text types.

vstephenmsft_4-1667208355752.png

 

 

4.Add a custom column.

vstephenmsft_5-1667208463686.png

vstephenmsft_6-1667208470355.png

 

Best Regards,

Stephen Tao

 

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Langtry ,

 

Here's my steps of solution.

1.Change your column as text type.

vstephenmsft_0-1667208158739.png

 

2.Split column by number of characters.

vstephenmsft_1-1667208172362.png

vstephenmsft_3-1667208207399.png

vstephenmsft_2-1667208195945.png

 

3.Still make the new columns are text types.

vstephenmsft_4-1667208355752.png

 

 

4.Add a custom column.

vstephenmsft_5-1667208463686.png

vstephenmsft_6-1667208470355.png

 

Best Regards,

Stephen Tao

 

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

ppm1
Solution Sage
Solution Sage

You can use this expression in a custom column (or with Table.TransformColumns() )

 

= Date.FromText(Text.Start([DateTimeText],8))

 

Pat

Microsoft Employee

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.