Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Sudharshan1919
Helper III
Helper III

Split of a Field Values

Hi All,

Below format is my data.

 

Date         MachineName            AssociatedUsers

1-Jan              VM1                         Usr1, Usr2, Usr5

2-Jan              VM2                         Usr4

2-Jan              VM3                         Usr3,Usr6

 

I want the data like as below format.

Date         MachineName            AssociatedUsers

1-Jan              VM1                         Usr1

1-Jan              VM1                         Usr2

1-Jan              VM1                         Usr5

2-Jan              VM2                         Usr4

2-Jan              VM2                         Usr3

2-Jan              VM2                         Usr6

 

Kindly help me to achieve this result.

 

Thanks

3 REPLIES 3
v-zhangti
Community Support
Community Support

Hi, @Sudharshan1919 

 

You can try the following methods.
First:

vzhangti_0-1674120039282.png

Result:

vzhangti_1-1674120066613.png

Second:

Make two more copies of the table, leaving one column of AssociatedUsers for each table. Replace the column names of the three tables with consistency.

vzhangti_4-1674120352880.png

Third:

vzhangti_3-1674120275782.png

Result:

vzhangti_5-1674120414495.png

vzhangti_6-1674120539805.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

pratyashasamal
Memorable Member
Memorable Member

Hi @Sudharshan1919 ,
In PowerQuery Editor , go to  choose Rows >Split Column >Split Column using delimiter.

pratyashasamal_0-1673611315665.png

Thanks ,
Pratyasha Samal .
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





negi007
Community Champion
Community Champion

@Sudharshan1919 

 

here is the code and also the pbix file.

 

let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjDU9UrMU9JRCvM1BJKhxUWGOgpA0ghMmirF6gDVGMHVGEHUmKCLG0PEjXWAhJlSbCwA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Date = _t, MachineName = _t, AssociatedUsers = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type date}, {"MachineName", type text}, {"AssociatedUsers", type text}}),
#"Split Column by Delimiter" = Table.SplitColumn(#"Changed Type", "AssociatedUsers", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), {"AssociatedUsers.1", "AssociatedUsers.2", "AssociatedUsers.3"}),
#"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"AssociatedUsers.1", type text}, {"AssociatedUsers.2", type text}, {"AssociatedUsers.3", type text}}),
#"Unpivoted Only Selected Columns" = Table.Unpivot(#"Changed Type1", {"AssociatedUsers.1", "AssociatedUsers.2", "AssociatedUsers.3"}, "Attribute", "Value"),
#"Removed Columns" = Table.RemoveColumns(#"Unpivoted Only Selected Columns",{"Attribute"})
in
#"Removed Columns"

 

 

 

negi007_0-1673608842317.png

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.