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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
DavidB023
Helper III
Helper III

Put a year into date

 

Hi everybody !

 

I have a problem with date value. My table are like this, my problem is on Date column :

 

Capture.PNG

 


And I just want to put a year at its end... I look for a function which could distribuate a year for each row.


Thanks

Best regards

David

6 REPLIES 6
Stachu
Community Champion
Community Champion

is it just date format set to dd/mm, or entries in the column?
if the former then you just need to change the format of the column, if the latter then I suggest adding custom column in Power Query view



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

It's text value, in fact when I transform them in date, every date take 2018 but I have 2015 2016 2017 and 2018 on the same column..

I think about a function which I choose between for example row 1 and row 88, I put 2015 and that for each year.. But I don't think it is possible, if it is  I could fusion this column with Date (on picture) and I have my good format.

Anonymous
Not applicable

Could you please post the source data format? Are you able to change the type to DATE in Query Editor?

 

Thanks

Raj

Here is my source data test : https://1drv.ms/u/s!AlpYVjQtU7WhiS1xfWK_pBilOtGO

My basic format for Date column is text first, when I change it in Date format, I have every date in 2018..but when you see my source, (and it isn't practical) I have on a same column each day of each month for 3 years ago but without year's information.

Thanks

David

Anonymous
Not applicable

I could not access the file due to firewall issue, hope someone see the file and responds to you.

 

Thanks

Raj

Anonymous
Not applicable

Hi

Click on the date column from Field panel, and the go to Modelling -> Format -> Date Time -> Select the required date format.

 

Thanks

Raj

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.