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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
tksnota
Post Patron
Post Patron

how to trim space in data model

Hi,

 

I used combinedvalues as shown. 

 

I want to trim the space in order to get numbers instead of text.

 

I couldn't do it in power query because the column is not showing. Is there other ways to combine the values not as text.

 

Thanks

 

tksnota_0-1719248794815.png

 

1 ACCEPTED SOLUTION

Hi @djurecicK2 ,Thanks for your quick reply, I will add more.

Hi @tksnota ,

You can use the following DAX expression to create a column.

Column3 = IF(ISBLANK([Column2]),[Column1],[Column2])

vzhouwenmsft_0-1719555015540.png


Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
tksnota
Post Patron
Post Patron

Hi,

 

The convert function works. But my other issue now is how to merge the data into one column as shown in the table view  without using power query 

 

tksnota_0-1719304732114.png

 

Hi @djurecicK2 ,Thanks for your quick reply, I will add more.

Hi @tksnota ,

You can use the following DAX expression to create a column.

Column3 = IF(ISBLANK([Column2]),[Column1],[Column2])

vzhouwenmsft_0-1719555015540.png


Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

djurecicK2
Super User
Super User

Hi @tksnota ,

 The combinevalues function is expecting text fields. You can use the CONVERT function on numeric fields within the combinevalues function to change numeric fields into text fields. Like CONVERT(textfield, DOUBLE).

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.