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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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