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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
wilbur750
Frequent Visitor

How to get a date from monthly data source?

Hi all

 

I have a monthly data source which has date columns showing:

wilbur750_0-1700658216924.png

I am trying to create a new date column that gives 1st of the month for a standard UK date format e.g. top row would be 01/04/2017.

 

I have calculated the year from the fiscal year (labelled year in the table) and the month number from month column:

wilbur750_1-1700658470683.png

 

Now all it seems I need to do is add a "01/" & MONTHUM &"/" & Year but its now a string.  How do I get a proper date?

 

Manyy thanks

 

1 ACCEPTED SOLUTION
sjoerdvn
Super User
Super User

My advice is to not create a string, but an actual date column and than add your favorite date format. to create the date (computed) colum: DATE([Year], [MONTHNUM],1)

View solution in original post

2 REPLIES 2
wilbur750
Frequent Visitor

I Have managed to fix it now using Bing Chat which gave me:

DATE([Year], [Month Number], 1)

 

Works just fine!

sjoerdvn
Super User
Super User

My advice is to not create a string, but an actual date column and than add your favorite date format. to create the date (computed) colum: DATE([Year], [MONTHNUM],1)

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.