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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply

Problem when expandingRecordColumn

Hi,

I got few columns, [COLLABORATEURId], [CODE PROJETId],[DATE FIN],[FIELD4],[FIELD5] etc..

I grouped this table on [COLLABORATEURId] and [CODE PROJETId] with a condition on [DATE FIN] so as to supress duplicates records on [COLLABORATEURId] and [CODE PROJETId] =>

#"Grouped Rows"= Table.Group(#"InitialTable", {"COLLABORATEURId", "CODE PROJETId"}, {{"COLLABPROJET", each List.Max([DATE FIN])}})

Doing that I get only two columns [COLLABORATEURId] and [CODE PROJETId].

But after that,  I don't succeed to get back all my columns [COLLABORATEURId], [CODE PROJETId],[DATE FIN],[FIELD4],[FIELD5] etc.. doing a Table.ExpandRecordColumn on #"Grouped Rows"

Can you help?

1 ACCEPTED SOLUTION

Hi

I Found by myself.

The solutions proposed with grouping and expanding rows can't suppress duplicates fields.

We have to

  • sort [COLLABORATEURId], [CODE PROJETId] [DATE FIN] on descending [DATE FIN] (because I want to keep only Max [DATE FIN] for duplicates [COLLABORATEURId], [CODE PROJETId]
  • and then do a Table.Distinct

It works fine!

🙂

View solution in original post

4 REPLIES 4

I'm sorry; I can do both as you Shown before but when I want after to expand the columns the duplicates fields [CODE PROJETId],[DATE FIN] are always there.

Hi

I Found by myself.

The solutions proposed with grouping and expanding rows can't suppress duplicates fields.

We have to

  • sort [COLLABORATEURId], [CODE PROJETId] [DATE FIN] on descending [DATE FIN] (because I want to keep only Max [DATE FIN] for duplicates [COLLABORATEURId], [CODE PROJETId]
  • and then do a Table.Distinct

It works fine!

🙂

parry2k
Super User
Super User

@PatrickByGecko you can add multiple aggregations for group and one can be all rows 

 

parry2k_0-1701724822901.png

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

 

Thanks for your help but underneath if I chose "all Rows" I can't do on the same time my condition on "Max" [Date Fin] for suppressing the duplicates records as I said before.

How can I manage both, on the same time?

PatrickByGecko_1-1701763442574.png

PatrickByGecko_2-1701763573372.png

 

 

 

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