It’s a hard question to answer without knowing more about how the items/inventory system works
But I would guess your Data Table contains the definitions for your items, so perhaps in your definitions you can have a property that differentiates between the different item types. It could be an enum, or perhaps a gameplay tag.
If your items spawn an actor when picked up, perhaps your actor can have a function, maybe OnPickedUp, which you could do different things in depending on the type of the item. Perhaps you can have different classes inheriting from your Item actor that implement the function accordingly.