Forum Discussion
abrasington
8 years agoRegular Visitor
Flagging duplicate fields
Hi all, I have a table with every row describing a single quantity of different types of equipment. Some rows are meant to have a unique item ID code, and I would like to first display all rows ...
- 8 years ago
Hi abrasington,
In your scenario, did you mean this?
We can create a calculated column to count the number of ItemID based on equipment type group. And if the number is more than 1, obviously there exists duplicate item id.
Count ItemID = CALCULATE ( COUNT ( equipment[ItemID] ), ALLEXCEPT ( equipment, equipment[equipment] ) )And if you want to check a certain type of equipment. You can do this:
Count A1 = CALCULATE ( COUNT ( equipment[ItemID] ), FILTER ( equipment, equipment[equipment] = "A1" ) )Thanks,
Xi Jin.
v-xjiin-msft
8 years agoSolution Sage
Hi abrasington,
In your scenario, did you mean this?
We can create a calculated column to count the number of ItemID based on equipment type group. And if the number is more than 1, obviously there exists duplicate item id.
Count ItemID =
CALCULATE (
COUNT ( equipment[ItemID] ),
ALLEXCEPT ( equipment, equipment[equipment] )
)
And if you want to check a certain type of equipment. You can do this:
Count A1 =
CALCULATE (
COUNT ( equipment[ItemID] ),
FILTER ( equipment, equipment[equipment] = "A1" )
)Thanks,
Xi Jin.