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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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