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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Adding multiple entries for each record in a sumamrized table

Hello all, following many failed attempts and hours searching for what I think must be super simple I am missing the beat here. 

 

I am creating a summary dimensions table. 

I have a list of UserIDs that I summarise. In the example below I have a summary of 5 user IDs. 

UserID
1
2
3
4
5

 

I also want to be able to add 3 records for each User ID:

"Learning community"

"Feedback"

"Engagement"

 

My desired output:

1Learning community
2Learning community
3Learning community
4Learning community
5Learning community
1Feedback
2Feedback
3Feedback
4Feedback
5Feedback
1Engagement
2Engagement
3Engagement
4Engagement
5Engagement

 

 

My formula so far only enables me to add each question for an individual column:

Test_Question_UserID = 
SUMMARIZE('_Source Data_Course',
        '_Source Data_Course'[UserID],
            "Question","Learning community")
 
Help would be greatly appreciated
2 ACCEPTED SOLUTIONS
mahoneypat
Microsoft Employee
Microsoft Employee

It is easier to do this in the Query Editor.  Please paste this in a blank query (Advanced Editor, replace the existing text with this)

 

let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlSK1YlWMgKTxmDSBEyaKsXGAgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [ID = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"ID", Int64.Type}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each {"Learning Community", "Feedback", "Engagement"}),
#"Expanded Custom" = Table.ExpandListColumn(#"Added Custom", "Custom"),
#"Changed Type1" = Table.TransformColumnTypes(#"Expanded Custom",{{"Custom", type text}})
in
#"Changed Type1"

 

It adds a List with your three values to each of the rows and then expands to new rows to get your desired result.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

Anonymous
Not applicable

Thanks so much @mahoneypat such a nice solution in m. 

Greatly appreciated

View solution in original post

2 REPLIES 2
mahoneypat
Microsoft Employee
Microsoft Employee

It is easier to do this in the Query Editor.  Please paste this in a blank query (Advanced Editor, replace the existing text with this)

 

let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlSK1YlWMgKTxmDSBEyaKsXGAgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [ID = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"ID", Int64.Type}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each {"Learning Community", "Feedback", "Engagement"}),
#"Expanded Custom" = Table.ExpandListColumn(#"Added Custom", "Custom"),
#"Changed Type1" = Table.TransformColumnTypes(#"Expanded Custom",{{"Custom", type text}})
in
#"Changed Type1"

 

It adds a List with your three values to each of the rows and then expands to new rows to get your desired result.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Thanks so much @mahoneypat such a nice solution in m. 

Greatly appreciated

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors