- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Need help summing values of products with same name but different amount
I have been trying to figure out how to sum the values of a product across multiple lines. I have tried many different forums with similar requests, but I can't seem to get the correct answer. Could possibly be my relationships, but I'm unsure. Any help is greatly appreciated!
This first image is my current formula. The answer I'm getting is the total quantity requested for the individual products. I want it to sum the quantity requested in relation to the Product: Product Name and the SSP Name
This image is showing the quantity requested for this person. The answer I should be getting in the first image is 204 for Shock Sensor 2 for Aaron Shaw, but I continue to get 86,092. That is the sum of all the requested Shock 2 Sensors and I'm out of formulas and attempts and approaches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Based on your description, grouping only needs to be nested in a ALLEXCEPT function. Please try:
Total Requested=
CALCULATE(SUM('MTD Purchase Report-ALL'[Quantity Requested]), ALLEXCEPT( 'MTD Purchase Report- ALL', 'MTD Purchase Report-ALL'[SSP Name],'MTDPurchase Report-ALL'[Product:Product Name]))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I tried this a few times thinking I was doing something wrong, but it won't work for me for some reason. It still returns the total requested for each product.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Could you provide sample data or a sample pbix after removing sensitive data?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hello @gmark ,
Have you tried "Group By" in the "Transform" tab. If you go for advanced group by, you can by name and product and perform aggregations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hello xander2121, I did try that but I don't want it to eliminate those columns. When I did that it grouped the columns and I need it to group rows.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@gmark https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523#M6071...
Questions with sample data moves really first in this forum

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
02-19-2024 12:44 PM | |||
07-05-2024 09:35 AM | |||
09-14-2024 12:36 PM | |||
05-27-2024 05:54 AM | |||
07-04-2024 04:53 AM |
User | Count |
---|---|
141 | |
115 | |
84 | |
63 | |
47 |