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
browna6
Frequent Visitor

Creating a new reference column via a flat file (Date field)

Hi

 

I'm looking for some help with the below data. I want to create a new reference column - which is taking the date in the 'due date' column in the attached

 

For example if the due date is 30/11/2015 = i want to create a new refrence column that takes the year '2015' mutiple that times 12 then add the month - in this example 11 = 24191.

 

Is this possible? 

 

 

customer,docval,due-date
11926,648984,30/11/2015
11926,903787,30/11/2015
11926,976124,31/12/2015
11926,569599,31/12/2015
14340,829122,30/04/2015
14639,362986,30/04/2020
14639,374992,31/05/2020
14776,943918,30/05/2014
14776,718274,31/07/2014
14776,561896,31/10/2014
14776,458269,30/09/2015

 

Any suggestion or help would be greatly appreciated  

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @browna6 

try to add a calculated column like:

Column = YEAR([due-date])*12+MONTH([due-date])

it worked like:

FreemanZ_0-1680868766665.png

View solution in original post

2 REPLIES 2
browna6
Frequent Visitor

Perfect. Thank you 

FreemanZ
Super User
Super User

hi @browna6 

try to add a calculated column like:

Column = YEAR([due-date])*12+MONTH([due-date])

it worked like:

FreemanZ_0-1680868766665.png

Helpful resources

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