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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
RickJames
Frequent Visitor

Adding new rows to a table

I have table that is read in from an SQL server where  I do some calculation and renaming in Power Query and then I need to add additional rows to the table so that things will be calculated correctly.   The data is from an appointment calendar for our staff, in our application if you schedule a meeting for multiple people it saves as one record with the primary user name and then has fields for each additional person inlcuded.   I need to have a separate row/record for each person.   

 

For Example, I need this:

Meeting DateTime DurationScheduler Additional Person 1 Additional Person 2 
1/1/202210:00am30minMikeFrankSue
1/2/202211:00 AM60minJayGeorge 
      

 

To Become This:

Meeting DateTime DurationScheduler 
1/1/202210:00am30minMike
1/1/202210:00am30minFrank
1/1/202210:00am30minSue
1/2/202211:00 AM60minJay
1/2/202211:00 AM60minGeorge

 

I found this example below which makes sense, but I'm not sure how it would get incorporated into the exsiting process.  If I go to the advanced editor in power querry I don't know how to weave the code below in with what is already there.   Thanks for any help.

 

https://community.powerbi.com/t5/Desktop/Conditionally-Insert-Row/m-p/621076

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@RickJames 

select the first 3 columns and unpivot other columns

1.png

filter column value and remove attribute column

2.png

3.PNG





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

Proud to be a Super User!




View solution in original post

3 REPLIES 3
RickJames
Frequent Visitor

Thanks for your help.

you are welcome





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

Proud to be a Super User!




ryan_mayu
Super User
Super User

@RickJames 

select the first 3 columns and unpivot other columns

1.png

filter column value and remove attribute column

2.png

3.PNG





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

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors