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.
I need to be able to sequence my data using the current sequence - but totaling the "QuantityToBuild" column by grouping by the "Component" Column.
So in otherwords I would need sequence 1 and 2 to be labeled as "1", Component "2128", and the QuantityToBuild "336". The go to sequence "2", Component "631", QuantityToBuild "224", and so on..
Here is my data currently as is:
Sequence | ItemNumber | Component | QuantityToBuild | Date |
1 | 178 | 2128 | 224 | 5/11/2020 0:00 |
2 | 179 | 2128 | 112 | 5/11/2020 0:00 |
3 | 2270 | 631 | 224 | 5/11/2020 0:00 |
4 | 182 | 2128 | 56 | 5/11/2020 0:00 |
5 | 183 | 2128 | 56 | 5/11/2020 0:00 |
6 | 2271 | 631 | 224 | 5/11/2020 0:00 |
7 | 8485 | 8489 | 112 | 5/11/2020 0:00 |
8 | 8484 | 8489 | 504 | 5/11/2020 0:00 |
9 | 181 | 2128 | 168 | 5/11/2020 0:00 |
10 | 3108 | 924 | 90 | 5/11/2020 0:00 |
11 | 6413 | 9452 | 56 | 5/11/2020 0:00 |
12 | 3107 | 924 | 90 | 5/11/2020 0:00 |
13 | 6412 | 9452 | 56 | 5/11/2020 0:00 |
14 | 3109 | 924 | 30 | 5/11/2020 0:00 |
Here is how I would hope my data would look:
Sequence | Component | QuantityToBuild | Date |
1 | 2128 | 336 | 5/11/2020 0:00 |
2 | 631 | 224 | 5/11/2020 0:00 |
3 | 2128 | 112 | 5/11/2020 0:00 |
4 | 631 | 224 | 5/11/2020 0:00 |
5 | 8489 | 616 | 5/11/2020 0:00 |
6 | 2128 | 168 | 5/11/2020 0:00 |
7 | 924 | 90 | 5/11/2020 0:00 |
8 | 9452 | 56 | 5/11/2020 0:00 |
9 | 924 | 90 | 5/11/2020 0:00 |
10 | 9452 | 56 | 5/11/2020 0:00 |
11 | 924 | 30 | 5/11/2020 0:00 |
Seems like you want to do a Group By on Component in Power Query. Then add a new Index column starting from 1.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |