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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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