Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello guys,
I have this problem. I would like to calculate the bundle price and this is my model.
Sales table:
Product name Price
Main Device A | 10000 |
Component 1 | 500 |
Component 2 | 600 |
Main Device B | 15000 |
Component 3 | 1000 |
... |
and I have another table with Bundles which has Many to Many relationship with the table above on Product name = Product name
Parts Product name Bundle Name
Part 1 | Main Device A | Bundle A |
Part 2 | Component 1 | Bundle A |
Part 3 | Component 2 | Bundle A |
Part 1 | Main Device B | Bundle B |
Part 2 | Component 1 | Bundle B |
Part 3 | Component 1 | Bundle B |
Part 4 | Component 3 | Bundle B |
What I want to achieve is to have a Price per Bundle Name. For example Bundle A price is the sum of each components: (Main Device A, Component 1, Component 2) 10000 + 500 + 600 = 11100
for Bundle B it is (Main Device B, Component 1 x2, Component 3) 15000 + 500 + 500 + 1000 = 17 000
I am a bit lost on what should be a DAX code for the price?
This is simplified, I have a Price as a measure, what I have in the table sales is Revenue and Qty + I have Customers. Price is then a measure = Divide(Sum(revenue), Sum(Qty)).
The measure itself is not working for Bundles because for Bundle A for example I dont want to aggregate all the componets within Bundle A. If I aggregate it the Price for Bundle A will be 2 900. But the correct price should be the sum of individual components prices (10 000 +500 + 600 = 11 000)
Customer | Product | Revenue | Units |
A | Main Device A | 100 000 | 10 |
A | Component 1 | 10 000 | 20 |
A | Component 2 | 5 000 | 10 |
A | ... | .. | .. |
A | ... | ... | ... |
Try to smend [Price] as follows
Price =
SUMX ( Sales, DIVIDE ( Sales[Revenue], Sales[Qty] ) )
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
10 |
User | Count |
---|---|
18 | |
13 | |
12 | |
11 | |
8 |