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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to add only date column with specific date for all the rows?

Hi,

I've below table which has only two columns (Place & Value) wtih few rows, for each rows  I wanted to add hardcoded date as 01,01,2020 date column. How to achieve this?

MuraliPrasathS_0-1607922262905.png

 

1 ACCEPTED SOLUTION

@Anonymous , new column as

new date = date([year],1,1)

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thanks! that worked so perfectly.

Also I've only Year Column how to make date out of it.

Example:-

Year

2020

2018

 

Expected 

Date

1,1,2020

1,1,2018

How to achieve this. Many Thanks 

@Anonymous , new column as

new date = date([year],1,1)

amitchandak
Super User
Super User

@Anonymous , add a new column

 

new column = date(2020,01,01)

 

This will be in date format

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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