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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Add Default Value

Hello Community,

 

I need help in creating a column with default value. I have a dataset with 2 columns and i want to create 3rd column with default value like(Same value for all records).

 

Dataset :
ID     Name
1       Arjun

2       Deep

 

Output:

ID   Name Age

1     Arjun   27

2    Deep    27

 

Thanks,
Paruchuri

2 ACCEPTED SOLUTIONS
McCow
Resolver III
Resolver III

Hi @Anonymous

 

will new column with constant value help?

 

Context menu "new column" ->

Column = 27

2017-12-14_00-51-16.png

or it's too simple?

Best regs

View solution in original post

Fine, @Anonymous,

 

try this:

Column2 = "https://www.google.com"

double quotes is important for text value

 

best regs

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

This worked thank you @McCow 

McCow
Resolver III
Resolver III

Hi @Anonymous

 

will new column with constant value help?

 

Context menu "new column" ->

Column = 27

2017-12-14_00-51-16.png

or it's too simple?

Best regs

Anonymous
Not applicable

Thanks It is working. I am trying to create one more column with default value 'https://www.google.com' to all records but getting error. 

 

The syntax for ':' is incorrect. (DAX(https://www.google.com)).

Fine, @Anonymous,

 

try this:

Column2 = "https://www.google.com"

double quotes is important for text value

 

best regs

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.