Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a dataset with multiple concatenated fields and I need to split them into rows based on the delimiter (some cases a semicolon, others a comma).
Report format (input)
ID | Aggregated_Ethnicity | Aggregated_Ethnicity_Group |
1 | New Zealand European/Pakeha | European |
2 | New Zealand European/Pakeha;New Zealand Maori | European; Maori |
3 | British/Irish;New Zealand European/Pakeha | European |
4 | Indian;New Zealand European/Pakeha;Other | Asian; European; Other |
Output I want
ID | Aggregated_Ethnicity | Aggregated_Ethnicity_Group |
1 | New Zealand European/Pakeha | European |
2 | New Zealand European/Pakeha | European |
2 | New Zealand Maori | Maori |
3 | British/Irish | European |
3 | New Zealand European/Pakeha | European |
4 | Indian | Asian |
4 | New Zealand European/Pakeha | European |
4 | Other | Other |
Solved! Go to Solution.
@RickL,
Add a cutsom column in your table.
if Text.Contains([Aggregated_Ethnicity], ";")=true and Text.Contains([Aggregated_Ethnicity_Group], ";")=false then [Aggregated_Ethnicity_Group] &";"&[Aggregated_Ethnicity_Group]else [Aggregated_Ethnicity_Group]
Then duplicate your table, and split columns and merge tables. For more details, please review attached PBIX file.
Regards,
Lydia
@RickL,
Add a cutsom column in your table.
if Text.Contains([Aggregated_Ethnicity], ";")=true and Text.Contains([Aggregated_Ethnicity_Group], ";")=false then [Aggregated_Ethnicity_Group] &";"&[Aggregated_Ethnicity_Group]else [Aggregated_Ethnicity_Group]
Then duplicate your table, and split columns and merge tables. For more details, please review attached PBIX file.
Regards,
Lydia
Thanks Lydia
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
68 | |
40 | |
29 | |
26 |
User | Count |
---|---|
89 | |
49 | |
44 | |
38 | |
37 |