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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to combine Coy and Ref and Date into one field ?

Hi All

 

I have below raw data :-

 

Company,Ref,Date

SCM Technology Pte Ltd,0001,23/12/2019

ADL Pte Ltd,0002,23/11/2019

 

Expected Result :-

 

Co_Ref_Date

0001 SCM Tec 23/12/2019

0001 ADL Pte 23/12/2019

 

My purpose is combine 3 feild info to one field , For company i pick the frist 6 charater , Hope some one can help me.

 

Paul

 

 

 

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

@Anonymous 
You need to modify the measure based on your table/Column name..could see that your table name is different than used in measure .
Please use the below Measure 
Concatenate= [Ref] & left([Company],6) & [Date]

View solution in original post

Anonymous
Not applicable

@Anonymous  You can copy measure from any website and add to Power bi ...you need to click on formula bar first and then CTRL+Vcopymeasure.png

View solution in original post

10 REPLIES 10
Anonymous
Not applicable

@Anonymous  : You Can use Below Formula to create new Column .

New Column = Combinevalue(" - ",'Tbl1 (2)'[Ref] , LEFT('Tbl1 (2)'[Company],7) ,Tbl1 (2)'[Date] )

Always use Combinevalue to concat multiple column . It is more efficiant than other method. 



Give Me Kudos If Find it More Suitable .

Anonymous
Not applicable

Hi Sir

I still get error :-

Paulyeo11_0-1601971088451.png

 

Anonymous
Not applicable

@Anonymous 
You need to modify the measure based on your table/Column name..could see that your table name is different than used in measure .
Please use the below Measure 
Concatenate= [Ref] & left([Company],6) & [Date]

Anonymous
Not applicable

New Column = Combinevalues(" - ", 'Tbl1 (2)'[Ref] , LEFT('Tbl1 (2)'[Company],7) ,Tbl1 (2)'[Date])

Correct Formula

Anonymous
Not applicable

Hi Sir

 

I get error msg :-

 

The following syntax error occurred during parsing: Invalid token, Line 1, Offset 75, '[Date] )).

 

Paul

Tahreem24
Super User
Super User

@Anonymous ,

Use the below Column:

Combine Column = 'Tbl1 (2)'[Ref] &" " & LEFT('Tbl1 (2)'[Company],7) & " " &'Tbl1 (2)'[Date]

 

Find the screen shot of your answer:

1.PNG

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
amitchandak
Super User
Super User

@Anonymous , Try a new column like

 

new column
= [Ref] & left([Company],6) & [DAte]

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi All 

Thank you very much for every one help , i manage to create my first expression  , meaning i cannot copy and paste the script . need manually typing the expression word by word.

Paulyeo11_0-1601977490373.png

 

 

Anonymous
Not applicable

@Anonymous  You can copy measure from any website and add to Power bi ...you need to click on formula bar first and then CTRL+Vcopymeasure.png

Anonymous
Not applicable

Hi Sir

Thank you very much for your info , good is it will save a lot of my time , bad is that i will not rememeber the syntax. 

Paul Yeo

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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