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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Converting numbers to text?

Hi all ,

 

I want to combine 2 text fields and 2 number fields , but i keep getting the error Expression . Error :  We cannot convert the value to type Logical.

 

Some Raw Data :

 

TextField1NumberField1TextField2NumberField2
India4500Apples14749
US6500Nuts65757
UK8500Peas43442

I need to combine them to one column like :

India - 4500 - Apples - 14749

 

Any help appreciated, thanks.

1 ACCEPTED SOLUTION

@Anonymous 

please try this.

=[Column1]&"-"&Number.ToText([Column2])&"-"&[Column3]&"-"&Number.ToText([Column4])

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , Try like

new column = [TextField1] & " - "& [NumberField1] & " - "& [TextField2] & " - "& [NumberField2]

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
ryan_mayu
Super User
Super User

@Anonymous 

 

Is this what you want?

Column = 'Table (2)'[Column1]&"-"&'Table (2)'[Column2]&"-"&'Table (2)'[Column3]&"-"&'Table (2)'[Column4]

1.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Yes , but in power query , isnt this in DAX?

Sorry to not have mentioned that.

@Anonymous 

please try this.

=[Column1]&"-"&Number.ToText([Column2])&"-"&[Column3]&"-"&Number.ToText([Column4])

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors