Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ManjunathaEP
Helper II
Helper II

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 2
rfigtree
Resolver III
Resolver III

 

 

 

rfigtree_0-1615192557221.png

 

amitchandak
Super User
Super User

@ManjunathaEP , Create a new column like

If(calculate(distinctCOUNT([Y/N?]), filter(Table, [Cust Name] =earlier([Cust Name])))+0=2, "Flex"," NonFlex")

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors