Forum Discussion

ManjunathaEP's avatar
ManjunathaEP
Helper II
5 years ago

IF function for multiple FILTERS

Hi All, I have a requirement to create a new column for the below-given table: Thank you in advance

order NoCust NameY/N?Revenue classAmountNew column
111ABCYApple100Flex
112XYZNApple22Flex
113ABCNApple300Flex
114XYZYOrange66Flex
115DFGNApple667NonFlex
116DDFYOrange567NonFlex
112XYZNMango345Flex
111ABCYMango349Flex

New column = I want the results as flex or nonflex. 

  • The actual requirement is to link flex or non flex for each row based on the "distinct" order number and distinct customer name by column name Y/N?
  • Flex: If column Y/N? equals "Y and N", then it should be Flex for those distinct orders and distinct customers
  • NonFlex" If column Y/N? "Y OR N", then it should be NonFlex for those distinct orders and distinct customers  

2 Replies