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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

Problem with splitting and formatting a text value

Hi there,

I want to replace the Full Stoptext in a text value with a comma, and roundup the numbers behind the comma by using DAX, but I don't know how...

 

Here is the text that I want to change, which is a measure:

 

608293.239524996T

 

The result that I want:

 

608293,24T

 

Thanks a lot,

 

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

HI @Anonymous 

You can use the below syntax to add a column.

Column = FORMAT(VALUE(SUBSTITUTE(Table1[a], "T", "")), ".00") & "T"


Regards,
Mariusz

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

2 REPLIES 2
Mariusz
Community Champion
Community Champion

HI @Anonymous 

You can use the below syntax to add a column.

Column = FORMAT(VALUE(SUBSTITUTE(Table1[a], "T", "")), ".00") & "T"


Regards,
Mariusz

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

Anonymous
Not applicable

Thank you!

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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