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

Get certified as a Fabric Data Engineer: Check your eligibility for a 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700. Get started

Reply
iW1DOV
Frequent Visitor

How to manage bundles in product dimension?

Hi all, 

I am struggling to solve this problem. Our customer wants a report showing quantities of item sold; some items are sold individually and also in bundles. For example, you can buy a snap-pencil, leads and an eraser, but you can also find them in a single package with a pencil, two cases of leads, and an eraser. 

The product dimension contains the bundle as an individual item, and the sales table always refers to the bundle item ID, rather than idividual items , when the item sold is a bundle. 

The user requirements is to have in a report both the count of item sold, considering bundles as single items (ok, that's trivial), and the count of items, ignoring bundles, but considering the buldles components instead. In other words, they want me to expand bundles into the single components and count them instead.  This is the hard part of the task, and I am not managing to get the desired result. I believe I cannot simply expand bundles into their components in dimension table, because in this way I cannot count bundles as single products anymore. I tried identifying bundles in product dimension and tried using this information to count items in each bundle, to no avail 

Here it is my model schema (A mock, of course) 

iW1DOV_1-1739272223235.png
Products
iW1DOV_2-1739272248106.png
Bundles

iW1DOV_3-1739272295653.png

Sales

iW1DOV_4-1739272350775.png

 


Desiderd result: 

iW1DOV_0-1739272212122.png

The general formula is Quantity Sold = Sum([item quantities]) + Sum([Item quantity in bundle] * [Bundle quantity])
Can anyone give me an hint and point me in the right direction? I can also alter the model if needed. 

Thanks in advance, 

Gianfranco 

2 REPLIES 2
Sergii24
Super User
Super User

Hi @iW1DOV, can you share pbix sample? Thanks!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.