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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Group Table by Columns creating list for the none grouped column

Looking for some inspiration please.

 

Within a Dataflow Query I want to group by NAME & Type and for the DATE column replace this with a list which in this example would hold two dates.

 

What I am trying to do is find where there are records missing (by Date)  so I want to use the List.Differance to find these against a list of know dates so looking for a way to make the list for each distinct Name & Type combination. 

 

NameTypeDATE
A101/01/2020
A108/01/2020
A201/01/2020
A208/01/2020
B101/01/2020

 

 

NAMETypeDate
A1list (01/01/2020, 08/01/2020)
A2list (01/01/2020, 08/01/2020)
B1list (01/01/2020)

 

Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

OK -- figured it out

 

    #"FTG Step 2: List Dates" = Table.Group(#"FTG Step 2: Make table unique",{"Name", "Type", },{"ActualDates" , each [#"Report Date - TEXT"] ,type list})

 

This gives you a list in each row.

 

Note: It needs to be a Text value so you can expand it later

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

OK -- figured it out

 

    #"FTG Step 2: List Dates" = Table.Group(#"FTG Step 2: Make table unique",{"Name", "Type", },{"ActualDates" , each [#"Report Date - TEXT"] ,type list})

 

This gives you a list in each row.

 

Note: It needs to be a Text value so you can expand it later

amitchandak
Super User
Super User

@Anonymous ,

No very clear. Refer if this can help

https://docs.microsoft.com/en-us/dax/concatenatex-function-dax

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

Hi,

 

No concatenatex works across a row what I am looking to do is group a number of rows together like you would with Group By but instead of aggregating i want to create a list of these values.

 

It is also like pivoting but I don't want to create new columns I want a list of these values.

 

Regards

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.