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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
xadya
Frequent Visitor

Twitter datetype to Power BI date type

Hey,

 

I have Twitter date that have a specific Twitter format for date:

Sun Oct 15 15:55:29 +0000 2017

 

I would like this to be:

15 10 2017

 or any workable variation on this. Is there any way to do this in Power BI?

1 ACCEPTED SOLUTION
ChandeepChhabra
Impactful Individual
Impactful Individual

@xadya I am assuming the format of twitter dates doesn't change at all

 

  1. Using powerquery extract the year and the date
  2. Create a separate Months table with Month Name and Month Index (1-12)
  3. Then write a calculated column to combine all 3 (year, month, date) into a single date

Here is the output

 

Capture.PNG

 

You can download the PowerBI

View solution in original post

2 REPLIES 2
ChandeepChhabra
Impactful Individual
Impactful Individual

@xadya I am assuming the format of twitter dates doesn't change at all

 

  1. Using powerquery extract the year and the date
  2. Create a separate Months table with Month Name and Month Index (1-12)
  3. Then write a calculated column to combine all 3 (year, month, date) into a single date

Here is the output

 

Capture.PNG

 

You can download the PowerBI

This works like a charm. Thank you so much!

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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