Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have a column of data which is of the format given below:
[{'name': 'TriStar Pictures', 'id': 559}, {'name': 'Teitler Film', 'id': 2550}, {'name': 'Interscope Communications', 'id': 10201}]
I want to split this column of data into multiple columns, with delimiter start as '{' and delimiter end as '}'.
Endresult expected:
Column 1 | Column 2 | Column 3 |
{'name': 'TriStar Pictures', 'id': 559} | {'name': 'Teitler Film', 'id': 2550} | {'name': 'Interscope Communications', 'id': 10201} |
If I use the delimiter as comma, then even then the result would be 6 columns, which is not what I want. Can you please suggest how this can be done in Power BI Query Editor using the Split column feature.
Solved! Go to Solution.
You can use below DAX
=PATHITEM(SUBSTITUTE(Person[Full Name], “{”, “|”), 1)
1 is for previous text {
2 for after text {
You can use below DAX
=PATHITEM(SUBSTITUTE(Person[Full Name], “{”, “|”), 1)
1 is for previous text {
2 for after text {
Thanks Aditya for your quick response. It really helped in resolving the issue. Thanks once again.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |