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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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