Forum Discussion
Hidde
Helper I
8 years agoCreating segments of customers based on multiple rows & values
Hi, I have rows of invoices, so lets say for 1 customer there are 4 invoices with a text description: 1. Standard module 1 2. Premium module 1 3. Standard module 2 4. Premium module 2 ...
- Anonymous8 years ago
Hi Hidde,
You can use below measure to check premium status.
Is premium = SEARCH ( "Premium", CONCATENATEX ( ALLSELECTED ( Table1[Module] ), [Module], "," ), 1, 0 ) > 0Regards,
Xiaoxin Sheng
- 8 years ago
Thanks I managed to solve it this way:
if(search("Premium",Table1[Modules],,0)>0,,1,,blank())
Hidde
Helper I
8 years ago
In this file you can see the desired outcome and sample data.
So for every month & customer I need to check whether at least 1 Premium Module was invoiced...
Anonymous
8 years agoNot applicable
Hi Hidde,
You can use below measure to check premium status.
Is premium =
SEARCH (
"Premium",
CONCATENATEX ( ALLSELECTED ( Table1[Module] ), [Module], "," ),
1,
0
)
> 0
Regards,
Xiaoxin Sheng
- Hidde8 years ago
Helper I
Thanks I managed to solve it this way:
if(search("Premium",Table1[Modules],,0)>0,,1,,blank())