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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Shachar_Tal
New Member

Grouping by a list of columns

Hi,

I have a table that contains about 50 columns.... Some columns are parameters and some are plain text.

I'm trying to avoid selecting all aggregating columns manually so I need a way to dynamically group the table in a way that the aggregated columns are those given in a different list.

Any ideas??

Thanks

1 ACCEPTED SOLUTION
6 REPLIES 6
latimeria
Solution Specialist
Solution Specialist

Table.SelectColumns(table, listofcolumns).
You can get the list of columns by using Table.ColumnNames(table) to avoid misspelling

Hi,

Thanks for your response.

This method will only provide the table with the selected columns... The question is how do I group by these columns while aggregating all other columns?

Unfurtunately it did not work... As described in the other thread it lead to an error

Help us help you.

Upload some sample data in tabular format and desired result as well....

Thanks a lot, I believe this will work...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors