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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
melikekurrt
Frequent Visitor

How can I write ? a single "ACTION" based on "ID"

Hello,

I am new to Power BI, this may be a simple question for you but I would be very happy if you could help me.

 

Can I write the data in the "ACTION" column side by side in "RECORD_NUMBER" order? 

For example: apple banana strawberry cherry watermelon 

melikekurrt_0-1739283537347.png

I have many "NUMBER" and "ACTION" data of these numbers. How do I show ?

 

1 ACCEPTED SOLUTION
dufoq3
Super User
Super User

Hi @melikekurrt, check this:

 

Output

dufoq3_0-1739284794664.png

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8vQ1NDQxMTUxVdJRMgHi5IzUoqJKpVgdVCkQLk8sSS3KTc3Jz8OQNgbi4pKixPIkrLqNgDgpMQ8IMaQMgTixoCAnVSk2FgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [NUMBER = _t, RECORD_NUMBER = _t, ACTION = _t]),
    ChangedType = Table.TransformColumnTypes(Source,{{"RECORD_NUMBER", Int64.Type}}),
    GroupedRows = Table.Group(ChangedType, {"NUMBER"}, {{"CombinedACTION", each Text.Combine(Table.Sort(_, {"RECORD_NUMBER"})[ACTION], " "), type text}})
in
    GroupedRows

 


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

View solution in original post

1 REPLY 1
dufoq3
Super User
Super User

Hi @melikekurrt, check this:

 

Output

dufoq3_0-1739284794664.png

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45W8vQ1NDQxMTUxVdJRMgHi5IzUoqJKpVgdVCkQLk8sSS3KTc3Jz8OQNgbi4pKixPIkrLqNgDgpMQ8IMaQMgTixoCAnVSk2FgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [NUMBER = _t, RECORD_NUMBER = _t, ACTION = _t]),
    ChangedType = Table.TransformColumnTypes(Source,{{"RECORD_NUMBER", Int64.Type}}),
    GroupedRows = Table.Group(ChangedType, {"NUMBER"}, {{"CombinedACTION", each Text.Combine(Table.Sort(_, {"RECORD_NUMBER"})[ACTION], " "), type text}})
in
    GroupedRows

 


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.