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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

calculate cost saving between two products

I have a list of products, one groups of products is generic the other is patented (so cost more) but do the same thing. What I'd like is to be able to calculate the cost a customer could have saved by moving the spending from the patented to generic product. If anyone could help it'd be very much appreciated. 

ProductItemsCost
Patented103.33
Patented206.66
Generic101.20
Generic303.60
1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @Anonymous ,

I'd like to suggest you add a group from the same products, then you can use this id column to find or correspond records. After these, you can simply compare records based on similar id groups and detail product types.

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @Anonymous ,

I'd like to suggest you add a group from the same products, then you can use this id column to find or correspond records. After these, you can simply compare records based on similar id groups and detail product types.

Regards,

Xiaoxin Sheng

kentyler
Solution Sage
Solution Sage

It seems that you might need a table that records which customer bought which product (and the date they bought it)
and a table of products, with the product price and the non-generic product it is a substitute for, and a flag for whether it's generic or not. (leaving aside whether one generic could sub for multiple non-generic)

Then you could add up customer purchases, and also add up what the total would be if they substituted generic for non-generic products in their "basket"


You could have a more complicated relationship between generic and non generic products with a bridge table that had fields for product, non-generic product that joined the table of products to itself and let there be many products that were linked to one non-generic product, and many non-generic products that were linked to a product.....then you would need to alter your comparison algorithm to look up the cheapest of potentially several alternatives to a product.
This is an interesting and potentially complex question. Let me know if you'd like to do a screen share and pursue it further. ken@8thfold.com

 





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors