Forum Discussion
Customer group split based on stores
- 1 year ago
SamWiseOwl I think I manage to find solution in M code:
Table.ReplaceValue(#"Renamed Columns1",each [Customer Group Description],each if Text.Contains([Store Name], " NI") or [Store Number] ="1378" then "Stores NI" else [Customer Group Description],Replacer.ReplaceText,{"Customer Group Description"})
Hi Justas4478
You could creater a Calculated Column in the Table view:
Location =
If(
- Justas44781 year agoPost Prodigy
SamWiseOwl Is this going to as well check other versions of NI for example:
'Ni', 'ni' or if they appear inside store names like this, 'Keniworth'?
Since these are my concerns if they will get considered as part of 'NI' group.- SamWiseOwl1 year agoSuper User
It isn't case sensitive.
Note I put " NI" the space infront means it can't be in Keniworth as it won't have a space in front of it.
- Justas44781 year agoPost Prodigy
SamWiseOwl I think it could work but I am not sure how it integrates with other groupings.
Here is full list of groupings:Beause of that it might have to be M code solution.