Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everybody,
I create a variable in a pivot table with this function:
if(sum(SCONTRINI)>=0 and sum(SCONTRINI)<2,'CASUAL',
if(sum(SCONTRINI)>=2 and sum(SCONTRINI)<6,'MEDIUM',
if(sum(SCONTRINI)>=6,'LOYAL')))
and I call it 'USE' and it works:
Now, I want to insert this variable in a list box, I want to filter with 'USE'
I try it with list box -> field -> <expression> and inserting this function:
Aggr(
if(sum(SCONTRINI)>=0 and sum(SCONTRINI)<2,'CASUAL',
if(sum(SCONTRINI)>=2 and sum(SCONTRINI)<6,'MEDIUM',
if(sum(SCONTRINI)>=6,'LOYAL'))),SCONTRINI)
I only see this:
I can select it but I don't filther anything in the other objects
Try this
Aggr(
if(sum(SCONTRINI)>=0 and sum(SCONTRINI)<2,'CASUAL',
if(sum(SCONTRINI)>=2 and sum(SCONTRINI)<6,'MEDIUM',
if(sum(SCONTRINI)>=6,'LOYAL'))), NRO_SOCIO)
Try this
Aggr(
if(sum(SCONTRINI)>=0 and sum(SCONTRINI)<2,'CASUAL',
if(sum(SCONTRINI)>=2 and sum(SCONTRINI)<6,'MEDIUM',
if(sum(SCONTRINI)>=6,'LOYAL'))), NRO_SOCIO)
thanks a lot! it works!