March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Dears:
First of all I have to say I'm really happy with the performance of PowerBI, Visuals and plantaform runs smoothly, but I have a problem I don't know how to handle.
I have two tables:
Variables common: Supplier Name, Supplier Number, Item number, Batch number, reception date and others. These variables are present in both Queries.
Action done: I have created a bridge table (with PowerQuery integrated), using, firstly, all the item numbers from the receptions table, then removing duplicates and then linking both tables together.
I did the same approach using the batch number instead but the my problem remains.
Question: How to obtain the % of batches with quality-claims against the total of batches PER SUPPLIER.
My attempt: After connecting both tables (either by item or by batch) and by using DAX formula (Basically Distintcount) I could obtain the % of total batches with claim against the total batches received. The results is ok, around 3%.
After adding some Slicers like "Year from the reception date", Category, etc it works, but it works AT TOTALS LEVEL.
My problems comes when I use that measure at supplier level (you want to drill into details). It basically doesn't work giving me results without sense.... I have one supplier, for instance, with 3 batches claimed from 300 received, the results should be 1%, but it isn't.
I would like to create a Scatter chart that relates turnover with nº of batches received (both variables from receptions tables), being the size bigger depending on nº of claims (it comes from table 2)
The only solution I found is by using Vlookup formula in the excel files, adding the QualityClaimID from Table 2 to Table 1 (reception) where applicable, and then use Distinctcount
Can someone help me with this to make it much easier? is there any other way to connect this files and not be in the need of using this vlookup or Index-match functions?
Note: I cannot publish pictures or real pictures because the material is strictly confidential.
Thanks in advance,
Solved! Go to Solution.
This absolutely should work. I often work with 6 lookup tables in my data set with several created in the same manner. I do keep a 'stock' date table and item table but most others are ad hoc.
Proud to be a Super User!
I have worked with several issues along the same lines. These best answer I have found is to merge or append the tables together into one big table and build from there. It isn't difficult and, at least for me, has returned reliable results.
You can find merge and append in the query editor.
Proud to be a Super User!
Hi Kcantor:
Thanks a lot for the reactivity and prompt answer.
I'm familiar with merge and append specially becuase I used both of them in PowerQuery sometimes. But in this case I think it is not the appropiate solution because Receptions table and Non-compliants table differ a lot each other.
It could possible to join, but most of the colums in Receptions table will be blank. Doing in the other way around, I would lose a lot of information needed for other graphs/visuals.
Thanks anyway!
Did you read the articles on sqlbi.com about many-to-many relationships - they are awesome...
http://www.sqlbi.com/articles/many-to-many-relationships-in-power-bi-and-excel-2016/
Hi Sdjensen:
Your file results quite interesting, it explains quite well how single-both directions relathionships work. In fact I also found a article in PowerBI community as a Link within and well-traslated to Spanish which always helps.. these things are new for me, so reading in mother language makes much easier hehehe.....
I am going to carry out some test, I will post my posible solution.
Regards,
Dears:
I think I have found a possible solution that maybe works, but I really want to check with you in order to know if this lucky or it's make sense.
Tables (fact tables): Let me remind the problem I had:
Purpose: To allow make calculations like:
To do this I have done the following:
Once finished, and once the relathionships are created (I repeat, one has both coordinality, the other one just Single), you can create measures and tables where the system works.
Structure once finished: 4 vlookups tables + 2 fact tables
After doing this, the system is working and I can create tables by selecting any of these variables, providing correct data and allowing filtering, ordering, cross-filtering, measures, etc.
My conclusion is therefore: You have to create as many bridge-cross-vlookup tables as variables you want to use for drilling your data between these two many-many tables (fact tables).
I'm looking forward to hearing from you 🙂
Regards,
This absolutely should work. I often work with 6 lookup tables in my data set with several created in the same manner. I do keep a 'stock' date table and item table but most others are ad hoc.
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
89 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |