Forum Discussion
conditional column for different entity
- 3 years ago
manishsalanke
I Suppose you have that column in the main table and you have 3 lists (vendor ,agent ,party) in 3 separate tables. As follows:
'Table'[Column]
Vendors[Vendor]
Agents[Agent]
Parties[Party]
The new column would beNewColumn = SWITCH ( TRUE (), 'Table'[Column] IN VALUES ( Agents[Agent] ), "Agent", 'Table'[Column] IN VALUES ( Vendors[Vendor] ), "Vendor", 'Table'[Column] IN VALUES ( Parties[Party] ), "Party" )
Hi manishsalanke
The requirement is not clear. Perhaps you can clarify further with examples.
actully we have one column which contains names and now we need to create a new column which contains values for party ,vendor ,agentThis column we have and we have to group few values as agent ,other for vendors and remaing party
this is how we want to see it in other column
- tamerj13 years agoCommunity Champion
manishsalanke
I Suppose you have that column in the main table and you have 3 lists (vendor ,agent ,party) in 3 separate tables. As follows:
'Table'[Column]
Vendors[Vendor]
Agents[Agent]
Parties[Party]
The new column would beNewColumn = SWITCH ( TRUE (), 'Table'[Column] IN VALUES ( Agents[Agent] ), "Agent", 'Table'[Column] IN VALUES ( Vendors[Vendor] ), "Vendor", 'Table'[Column] IN VALUES ( Parties[Party] ), "Party" )