Forum Discussion
yacine_Big
3 years agoFrequent Visitor
Calculate loyal customers
Hi i need help, i will try to explain my problem i hope someone can understand i have a table with many costumers and many products situation number one: a costumer who buys many products in same...
- 3 years ago
maybe you can create a new column
loyalty = if(CALCULATE(DISTINCTCOUNT('Table'[products]),ALLEXCEPT('Table','Table'[ID Name],'Table'[category]))=1,"Y","N")
ryan_mayu
Super User
3 years agomaybe you can create a new column
loyalty = if(CALCULATE(DISTINCTCOUNT('Table'[products]),ALLEXCEPT('Table','Table'[ID Name],'Table'[category]))=1,"Y","N")
yacine_Big
3 years agoFrequent Visitor
thank you it works like a charm, with some modifications because my table is more complicated than the one gave you but it really works thank you again .
- ryan_mayu3 years ago
Super User
you are welcome