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 dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have the following in a single table:
Key TotalPoints TotalPointsA TotalPointsB TotalPointsC TotalPointsD
1 2 2 null null null
1 5 null null 5 null
1 8 null 8 null null
What I want is the final table to look like:
Key TotalPointsA TotalPointsB TotalPointsC TotalPointsD
1 2 8 5 null
Solved! Go to Solution.
I was able to do this by using the Pivot feature.
For those that need to do something similiar, here is the video I found: Power Query: How to collapse Multiple Rows to a Single Row (youtube.com)
I was able to do this by using the Pivot feature.
For those that need to do something similiar, here is the video I found: Power Query: How to collapse Multiple Rows to a Single Row (youtube.com)
Hi
you can sum thte totalpoints columns except the key column as below
I want to do it in PowerQuery as part of the transform, as I am using the data in a stacked bar chart.
User | Count |
---|---|
63 | |
59 | |
56 | |
38 | |
29 |
User | Count |
---|---|
82 | |
62 | |
45 | |
41 | |
40 |