Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
nikboe09
Regular Visitor

Products price per category sum doesn't work

Hi all,

 

I've got a problem here that I do not understand.

 

Someone has a product with productCode and might have bought addon insurance from category 1, 2, 3 or 4.

The 4 categories have different prices, e.g. 1 = $10, 2 = $20 etc. Not everyone has bought the optional insurance.

 

The tables are:

Products: ID | productCode | productName | ...

Categories: productCode | Category | Price

 

productCodes are not unique. 

 

Now the problem:

If I create a visual with products.ID and categories.price, it shows the price, but doesn't create a sum.

If I select sum for the value, every product has the same sum, and the total sum is also the same.

 

What can I do? Any ideas?

 

 

Thanks!

6 REPLIES 6
Anonymous
Not applicable

Hi @nikboe09 

I have no way to restore your scene, so I don't know the structure and relationship of the data you mentioned very well. Can you provide a simple pbix file and the expected effect ? This will better help us solve the problem.

 

Best Regards

Community Support Team _ Ailsa Tao

Anonymous
Not applicable

Hi @nikboe09 

Did you choose the Sum for the field ‘Price’ ?

Ailsamsft_0-1626156543046.png

Best Regards

Community Support Team _ Ailsa Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Yes, I did. As stated above in my question.

amitchandak
Super User
Super User

@nikboe09 , You should use in visual product id, Categories category, Categories price.

 

can you share the expected output?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

nikboe09_0-1625739814888.png

 

It seems like the sum doesn't work, if the productCode is the same. They all bought the same product.

nikboe09
Regular Visitor

It seems like the problem was that the relationship property wasn't set to "both directions". 

But the sum per company still doesn't work:

 

nikboe09_1-1625736706319.png

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.