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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
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