Could you please share more details about your scenario? Are you working with CDS(Dataverse) tables? What kind of structures are those tables? In other words, what columns do those tables have, and what types are those columns?
Since lack of information, there would be too many situations to provide a solution. Please make it clearly enough.