Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi I really need some help,
I need to calculate a sum for Column Comp.Qty (BUn) in a newcolumn (SUM BUn All BareAxles) if column Bare Axles and column Component contain the same value
This it what I have this far:
Thanks Maria
Hi @Lunden,
Any update for these? Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Are you sure?? 🙂
Why is there 2 letters in the 2nd column?
Not sure yet what you want, but try this:
Maby it would be better do do a mesure for this?
😉
For sure. Unless you need it for slice and dice in visuals, and only need it as value to show, 99% would be better to do in a measure.
I still don't understand your data 😞
Could you maybe share a sampe of the data here so I could copy it easily and create the measure.
Put the same column names etc so you could just copy paste the code I will (hopefully haha) send
As you can see here, I get the total sum "8" for all Bare Axle (first column), I would like to get the sum of "Comp. Qty (BUn)" for each Bare axle = 1 in the case in the pictu
re, i will use the result for a calculation to prognose the need of each component depending on volume on each bare axle
Hi,
The colum "Bare Axle" haved 8 different part numbers, (level 1) this is the main part number for a complete unit. The 8 different Bare Axles then contains of 200-300 different parts who are in column "components", some are in every bare axle, and might also occur severel times in the column bare axle with the same partnumber and component number. The column "Comp. Qty (BUn)" tells how many components needed for each row in the structure for the Bare Axle
I need the total sum ("Comp. Qty (BUn)") of each component number in column "component" for every bare axle,
I'm not sure i managed to explain so it is easy for you to understand, please ask if it is unclear for youu if i can explain differently
Great thanks Maria
Hey Maria,
Not sure why you want this in a column and not a measure.
Can you show me what number do you want it to be in each row in this sample table:
Than I will write back the formula
| Bare Axles | Component | Comp. Qty (Bun) | SUM Bun All BareAxles |
| A | BA | 10 | 20 |
| A | CA | 10 | 10 |
| B | BA | 10 | 10 |
| C | AA | 10 | 10 |
| A | BA | 10 | 20 |
| C | CA | 10 | 10 |
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |