Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I have a table with several columns, I created a list of column headers. then I grouped in a DATA column the columns of the table without aggregation. I would then like to expand the tables in the DATA column using different aggregations based on the column name (element of the list of column names).
I tried .... ,
Aggreg2 = Table.AggregateTableColumn(
Groupe_table,
"Data",
List.Transform(My_Liste, each {if _ (Text.Contains(_,"50.002")) then List.Max else List.Sum, _, type number})
),
but obviously the syntax is wrong. Attached is a link to download the table and the request in excel.
https://www.dropbox.com/t/19UlLRnUgBpQTwim
Thanks for any help
Philippe
Solved! Go to Solution.
I think your aggregation list is incorrect syntax.
Try:
List.Transform(My_Liste, each if Text.Contains(_,"50.002") then {_, List.Sum, "sum of " & _, type number} else {_, List.Max, "Max of " & _, type number})
Thank you very much,
I still have a bit of trouble with lists and list.transform
Philippe
Thank you very much,
I still have a bit of trouble with lists and list.transform
Philippe
I think your aggregation list is incorrect syntax.
Try:
List.Transform(My_Liste, each if Text.Contains(_,"50.002") then {_, List.Sum, "sum of " & _, type number} else {_, List.Max, "Max of " & _, type number})
Check out the July 2025 Power BI update to learn about new features.