Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have multi-string text data in one column separated by unknown number of whitespaces. I want to replace ending special character on 3rd string from left by minus (-) if it ends with plus (+) and vice versa but rest of the string should remain unchanged. I tried split column and replace but couldn't figure it out. Here is an example of input and output column.
Solved! Go to Solution.
pls try this cod
[
f = Text.Range([Input Column],
Text.PositionOfAny([Input Column],{"-","+"},Occurrence.Last),1),
to = Text.Replace([Input Column],f,if f ="-" then "+" else "-")][to]
pls try this cod
[
f = Text.Range([Input Column],
Text.PositionOfAny([Input Column],{"-","+"},Occurrence.Last),1),
to = Text.Replace([Input Column],f,if f ="-" then "+" else "-")][to]
Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
218 | |
88 | |
83 | |
65 | |
56 |