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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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")
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 28 | |
| 19 | |
| 11 | |
| 10 |