Forum Discussion
Help with correct total
Hello!
Need help to see correct totals. Original data is huge and thus, I have created very small datasets to get the concept right. Also, I don't see an option to attach .pbx file here. Where can I find that option?
I have two tables - Table 1 has Sales(Qty1) on Parts and Table2 has Sales(Qty2) on Models.
Table 1
Table2
Each part of Table1 is related to Models in Table2. So, one part can be related to many models. However, sales on each part remains same as part is not unique to the model. One part goes in several models. Initially, I tried to work with these 2 tables as is. But was unsuccessful. So, I combined the two table as shown below and am achieving accurate result if we select one model at a time. However, it messes up in totals of parts, if we select more than one model or all models. It essentially aggregates all values of each part.
Combined Table - Each part is linked to specific model and is unique row.
So, in below, if I select any part and any model, then I get right information as below.
However, if I select any part & all models, then data for parts are also aggregated. For example, instead of seeing only 195 as Qty1, now we see 390.
What can we do avoid summing up parts? Any speific measure that can be used to help here. Or is there a better way to connect the two tables which was my approach initially, but it was hard to select specific models as I have a huge list of data here and results will show up for all models instead of only the ones linked to part.
Any help will be highly appreciated here.
Thanks!
Hi, Anonymous
If so, you can directly change the summary type of each column value, here you can use 'maximum'/'Average'/'Minimum' to get the result you want.
Best Regards,
Community Support Team _ Eason
10 Replies
- bcdobbsCommunity Champion
If you upload your file to one drive / dorp box and share the link I'll happily take a look.
Your first approach is a good start but you need a bridge table to handle the many to many relationship between parts and products.
Eg:
Part Model 1
A 1 B 2 A 2 C That is then a step forward but you'll still then end up with a similar problem to your flat table when you come to agregate as you're dealing with two different granualarities (part level and model level).
Share your file an if possible a bridge table like above and I'll try and help with the model and DAX for measures.
- AnonymousNot applicable
I don't see the option for uploading itself even for one drive 😞
How do I do that please?
- bcdobbsCommunity Champion
If you have the file in one drive you should be able to click share in one drive and create a link that anyone can access. Then just paste link below.