Reply
BlueWhite3699
Helper I
Helper I
Partially syndicated - Outbound

Extract Date and Day of Month from Date column using Power Query

Hi Expert

 

How would you extract from the date column the day and date intro a new column to show the following:

Column A

01/01/2025

02/01/2025

New Column

01-Wed

02-Thr

 

And so on - needs to be done on Power query as the FACT table has 11 million rows

1 ACCEPTED SOLUTION
vojtechsima
Super User
Super User

Syndicated - Outbound

hey, @BlueWhite3699 

Click new column and write this:

 

Date.ToText([Column A],"dd-ddd", "en")

 

vojtechsima_0-1742048066417.png

 

View solution in original post

4 REPLIES 4
Ritaf1983
Super User
Super User

Syndicated - Outbound

Hi @BlueWhite3699 
From PQ you can use this formula
Text.From(Date.Day([Column A])) &"-"&Text.Start(Date.DayOfWeekName([Column A]),3)

Ritaf1983_0-1742048459130.png

But 
The best practise is to have this column in a calender table
+
Note that we have a format option directly from visualizations :

Ritaf1983_1-1742048629299.png

The pbix with the axample is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
vojtechsima
Super User
Super User

Syndicated - Outbound

hey, @BlueWhite3699 

Click new column and write this:

 

Date.ToText([Column A],"dd-ddd", "en")

 

vojtechsima_0-1742048066417.png

 

Syndicated - Outbound

Excellent - thank you

Syndicated - Outbound

@BlueWhite3699 
happy to help.

avatar user

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)