Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I have a requirement to split a string and sum the values. Please find the below string as an example of my requirement. The string is a dynamic string. So we need a solution in as dynamic way.
Example:
2|xxx|3~4|xxx|5~6|xxx|7~8|xxx|9
From my example, our expected answer is 20(2+4+6+8)
I really appreciate any help you can provide.🙄
In a custom column, put following (replace Data with your column name)
List.Sum(List.Transform(Text.Split([Data],"~"), (x)=>Number.From(Text.BeforeDelimiter(x,"|"))))