Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi, Please help to create a new column for the below sample:
order No | Cust Name | Y/N? | Amount | New column |
111 | ABC | Y | 100 | Flex |
112 | XYZ | N | 22 | Flex |
113 | ABC | N | 300 | Flex |
114 | XYZ | Y | 66 | Flex |
115 | DFG | N | 667 | NonFlex |
116 | DDF | Y | 567 | NonFlex |
New column = I want the results as flex or nonflex.
"Flex" should be the customers have orders for both "Y/N" in Y/N? column
"Nonflex" should be the customers are not having orders either by Y or N in the Y/N? column
Thank you in advance
@ManjunathaEP , Try a new column like
if(calculate(distinctCOUNT([Y/N?]), filter(Table,[Cust Name] =earlier([Cust Name])))=2, "Flex","NonFlex")