Hi, I set the recommended formula, I use it in a dashboard where a “control box” slice filters the view.
I have this problem: if in the filter “Utente Corrente[Filter_Obiettivi]” (LIST B) I insert all the values of “[TARGETS]” (LIST A) correctly shows a result, while if in “Current User[Filter_Objectives]” I insert only 1 o 2 values present in “[OBIETTIVI]” disappears instead of remaining. If TEST formula is done, the incredible is that the result is YES (see photo) so you should see a line.
If, on the other hand, I select values not included in LIST A, it rightly excludes it.
The formula used works like this: (mechanism inspired by @MultiTech - hope he can help me too)
if the filter is not empty, use this criterion, otherwise do not filter - repeated several times.
AND(
[CLIENTE]="901989bd",
if(ISNOTBLANK(INDEX(Utente Corrente[Filtermodelli_coltura],1)),IN(INDEX(Utente Corrente[Filtermodelli_coltura],1),[COLTURA]),true),
if(ISNOTBLANK(INDEX(Utente Corrente[Filtermodelli_tipo_impianto],1)),IN([TIPO_IMPIANTO],Utente Corrente[Filtermodelli_tipo_impianto]),true),
if(ISNOTBLANK(INDEX(Utente Corrente[Filtermodelli_ferti_sino],1)),
[FERTI_SINO]=INDEX(Utente Corrente[Filtermodelli_ferti_sino],1),true),
if(
and(ISNOTBLANK(INDEX(Utente Corrente[Filtermodelli_ferti_n],1)),
INDEX(Utente Corrente[Filtermodelli_ferti_sino],1)="yes"),
ifs(INDEX(Utente Corrente[Filtermodelli_ferti_n],1)="1 > 3",[N_FERTI_DOCCIA]<=3,
INDEX(Utente Corrente[Filtermodelli_ferti_n],1)="4 > 6",
and([N_FERTI_DOCCIA]>3,[N_FERTI_DOCCIA]<=6),
INDEX(Utente Corrente[Filtermodelli_ferti_n],1)="7 > 9",
and([N_FERTI_DOCCIA]>6,[N_FERTI_DOCCIA]<=9),
INDEX(Utente Corrente[Filtermodelli_ferti_n],1)=TEXT("10 +"),[N_FERTI_DOCCIA]>=10),true),
if(ISNOTBLANK(INDEX(Utente Corrente[Filtermodelli_fog_sino],1)),
[FOG_SI_NO]=INDEX(Utente Corrente[Filtermodelli_fog_sino],1),true),
if(
and(ISNOTBLANK(INDEX(Utente Corrente[Filtermodelli_fog_n],1)),
INDEX(Utente Corrente[Filtermodelli_fog_sino],1)="yes"),
ifs(INDEX(Utente Corrente[Filtermodelli_fog_n],1)="1 > 3",[NFOGLIARI]<=3,
INDEX(Utente Corrente[Filtermodelli_fog_n],1)="4 > 6",
and([NFOGLIARI]>3,[NFOGLIARI]<=6),
INDEX(Utente Corrente[Filtermodelli_fog_n],1)="7 > 9",
and([NFOGLIARI]>6,[NFOGLIARI]<=9),
INDEX(Utente Corrente[Filtermodelli_fog_n],1)="10 > 12",
and([NFOGLIARI]>9,[NFOGLIARI]<=12),
INDEX(Utente Corrente[Filtermodelli_fog_n],1)=TEXT("10 +"),[NFOGLIARI]>=13),true),
**if(ISNOTBLANK(INDEX(Utente Corrente[Filter_Obiettivi],1)),**
**COUNT(SPLIT(Utente Corrente[Filter_Obiettivi]," | "))=**
**COUNT(INTERSECT(SPLIT(Utente Corrente[Filter_Obiettivi]," | "),SPLIT([OBIETTIVI]," | "))),true)**
**)**
the above parts of the formula all work. I used the SPLIT function in the final piece because INTERSECT reported this error: it is not possible to include a list of a list.
What am I doing wrong? could it be a bug?