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 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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
64 | |
59 | |
56 |