Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello All,
I am trying to find amount of duplications within a database, based on certain columns with conditions.
Below is a sample of the data I have:
| ID | VendorCode | ItemName | Duplications |
| 1 | H90042800 | 6251 | 2 |
| 2 | H90042800 | 6357 | - |
| 3 | H90042800 | 6251 | 2 |
| 4 | H90042800 | PD-6251-300 | 2 |
| 5 | H90042800 | PD-6251-300 | 2 |
| 6 | H90042800 | PD-6252-300 | 1 |
| 7 | H03000785 | PD-6252-300 | - |
| 8 | H03000785 | PD-6011-300 | - |
| 9 | H03000773 | PD-6011-300 | 1 |
| 10 | H03000773 | 6357 | - |
Duplications column should follow the below guidelines:
I am already familiar with Count(TOTAL <VendorCode, ItemName> ID) as a solution, but I want to add conditions to it.
Any ideas?
Try below
Count({<ID = e({<ItemName ={6357}>+<VendorCode={'H03000785'}>} ID) >} TOTAL <VendorCode, ItemName> ID)
Try below
Count({<ID = e({<ItemName ={6357}>+<VendorCode={'H03000785'}>} ID) >} TOTAL <VendorCode, ItemName> ID)