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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
sdhn
Responsive Resident
Responsive Resident

Merge Columns

Hi All

 

I have a single table.

I want to  merge 3 columns and name as first column. 

First column has a datatpe Text . 

Second column Whole Number.

Third column Whole number.

 

First column has single Alphabets.

 

sample data

column 1: A

column 2: 007

column 3: 911

 

I want to dispaly as

A-007-911

 

Thanks in advance.

 

 

 

1 ACCEPTED SOLUTION
sdhn
Responsive Resident
Responsive Resident

I did.  Thanks for your help.  I used mege feature of Power Bi. I highlighted 3 columns and used merege coulmns featur. 

View solution in original post

4 REPLIES 4
sdhn
Responsive Resident
Responsive Resident

I did.  Thanks for your help.  I used mege feature of Power Bi. I highlighted 3 columns and used merege coulmns featur. 

AlexisOlson
Super User
Super User

If columns 2 and 3 are numeric types, then you'll need to convert to text before combining and pad with zeros.

 

Try a custom column like this:

[Column1] & "-" & Text.PadStart(Text.From([Column2]), 3, "0")
          & "-" & Text.PadStart(Text.From([Column3]), 3, "0")
sdhn
Responsive Resident
Responsive Resident

Thanks

 

I changed dataype to text for column 2 & column 3. 

Did you write a measure above?

 

I have multiple fields. 

No. This is a calculated column using the M language in the query editor.

 

Measures use DAX.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.