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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors