I need your expertise on this specific matter which I am not entirely sure myself how to solve right now.
I have a column with 'Article Numbers' (we are talking thousands of them) then I have another column 'Warehouse' which states which warehouse the article is connected to. Worth noting is that we have 2 warehouses.
I first want to check for whether there are duplicates in 'Article nr' and then a formula (I guess?) that checks whether the duplicates considers which Warehouse it is connected to.
More specifically, because, if there is a duplicate for an article, one of the duplicates could be written on one of the Warehouse and the other on the other warehouse, if you see what I mean.
Article nr: '123456'
Warehouse: 'A', 'B'.
If there are two Art nr of '123456' existing, it could be that one of them is written on Warehouse A and the other one on Warehouse B. Whereareas I only want it to display '123456' for one of the warehouses.
My issue now then is how I go on solving this.
I was first thinking of removing duplicates in 'Power Query' but as the 'Art nr' could be written on either 'A' OR 'B', something tells me that, that's not how to solve it.
Hope you can help me in this.
Solved! Go to Solution.
Apologies for the late reply. I got destracted with some other business. If I correctly understand then this is a simple requirement. Just create a matrix visual with Art No on rows and Warehouse on columns and this measure on values
Duplicate = SUMX ( VALUES ( Warehouses[Art Nr] ), COUNTROWS ( VALUES ( Warehouses[Warehouse] ) ) )
From the filter pane do the following
@tamerj1 No worries. Thanks for your reply.
Do you add the measure to the matrix? And if so, is it possible to delete the duplicates? (as I just like we did know first only want see how many duplicates there are and then delete each duplicate for either Warehouse A or B as it's only necessary for the 'Art nr' to be written on of the Warehouses.
Many thanks again!
You can just create a new table as follows
Warehouses No Duplicates = SUMMARIZE ( Warehouses, Warehouses[Art Nr], "Warehouse", MAX ( Warehouses[Warehouse] ) )
Do you drag the measure to the table or? And does the measure takes the duplicates into consideration. If not how can I delete those?
Many thanks again.
Absolutely, here comes. I have 'bolded' the two articles that are duplicated but has different Warehouses. That's the thing with my file, there are thousands of rows.
Therefore, I want in my Power BI, to find all the duplicates and see which/how many are written on Warehouse A and how many on B.
Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.
Watch Session 24 of Ted's Dev Camp along with past sessions!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.