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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
BlueWhite3699
Helper II
Helper II

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

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

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

hey, @BlueWhite3699 

Click new column and write this:

 

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

 

vojtechsima_0-1742048066417.png

 

Excellent - thank you

@BlueWhite3699 
happy to help.

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors