The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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")
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |