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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.