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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Remove decimals in a concatenated column

Dear all,

 

I have a text column (ID) and Decimal column (LINENUM) wih 0 decimals which I concatenate with each other.

 

The problem with this is that the column suddenly shows decimals when I combine them:

bunyamin360_0-1612794962126.png

I tried two different functions and both did not work. I used CONCATENATE() and COMBINEVALUES() but both show same result. 

 

Does anyone know how I can remove the decimals in the new concatenated column?

 

Thanks!

3 REPLIES 3
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

Try Column by Example in Power Query

 

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-add-column-from-example

 

1.PNG

Do let me know if this works

 

Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

iXpert_info
Helper II
Helper II

Hello @Anonymous 

Can you try the below DAX 
ContractLine= CONCATENATE(ID,round([LineNum],0)

Please accept this as solution if this helped to help others

Best Regards
Jay Patel
iXpert Analytics

Anonymous
Not applicable

Hi @iXpert_info ,

 

I tried your DAX but this also shows the same results alas. 

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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