The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi all
I have this query:
I want to group by "Category" column and aggregate (summ) all other columns (Column3, Column4 ... ColumnN), but the N (number of columns) is not known before (this columns appear after applying Table.Transpose)
I can see that grouping is like this
Table.Group(#"Prev step", {"Category"}, {{"Column3", each List.Sum([Column3]), type number}})
I want to use list of columns (got by Table.ColumnNames) instead "Column3" and use some kind of list instead of hard reference in List.Sum([Column3])
Is that possible? If not, what is trobleshooting?
Solved! Go to Solution.
Hey,
before you start thinking about grouping your rows by the category column, unpivot the other columns:
https://www.youtube.com/watch?v=Kbu5RkUo6-k
Hopefully this provides you with some ideas.
Regards,
Tom
Hey,
before you start thinking about grouping your rows by the category column, unpivot the other columns:
https://www.youtube.com/watch?v=Kbu5RkUo6-k
Hopefully this provides you with some ideas.
Regards,
Tom
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
99 | |
93 | |
83 | |
64 | |
58 |
User | Count |
---|---|
248 | |
123 | |
112 | |
79 | |
78 |