Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
8 | |
6 |