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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
IAM
Helper III
Helper III

Power Query: Duplicate rows with multiple names

Hello,

 

Is it somehow possible to do the following in Power Bi Query:

 

 

When I have a project, with different people, can I extract it to multiple lines?

 

So for example:

NamesProjectDateHours
David, RichardProject X14-jul16

 

When I work with these names on an x-axis I will see 'David, Richard' as one name, but I want one line

of 8 hours for David and one line of 8 hours for Richard.

 

Names are always comma separated.

 

Is it possible to make two rows from this when I load the Excel file in Power BI?

1 ACCEPTED SOLUTION
KT_Bsmart2gethe
Impactful Individual
Impactful Individual

Hi @IAM ,

 

See below outcome:

KT_Bsmart2gethe_0-1657802871523.png

 

Simple 3 transformation steps:

1. Add a custom column and add formula below to split the name by ", " and return as a list:

Text.Split([Names],", ")

 

2. Expand the list to new rows

KT_Bsmart2gethe_2-1657803063696.png

 

3. Add a custom column to split the hour equally with formula below:

[Hours]/List.Count(Text.Split([Names],", "))

 

Regards

KT

 

 

 

View solution in original post

3 REPLIES 3
IAM
Helper III
Helper III

Woww thanks!!!

 

ronrsnfld
Super User
Super User

  • Right-click on the column
  • Split column => by delimiter
  • Select "comma", "advanced", "rows"

ronrsnfld_0-1657817575046.png

 

 

KT_Bsmart2gethe
Impactful Individual
Impactful Individual

Hi @IAM ,

 

See below outcome:

KT_Bsmart2gethe_0-1657802871523.png

 

Simple 3 transformation steps:

1. Add a custom column and add formula below to split the name by ", " and return as a list:

Text.Split([Names],", ")

 

2. Expand the list to new rows

KT_Bsmart2gethe_2-1657803063696.png

 

3. Add a custom column to split the hour equally with formula below:

[Hours]/List.Count(Text.Split([Names],", "))

 

Regards

KT

 

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.