Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Condition in dimension

Hi,

In the Background Color property of a dimension i apply this condition :

=if (Sum({$ <[Type adhérent]={Collectif}, Année=>} NB_ADH_RAD_NETTE)<1

and Sum({$ <[Type adhérent]={Collectif}>}NB_ADH_PORTEFEUILLE) = Sum({$ <[Type adhérent]={Collectif},

REIMMATRICULATION={NON}, Année={$(vAnnée)} >} NB_ADH_PROD_NETTE) , RGB(255,0,0))

It works fine for the backgrounbd color.

But i don't know how to apply this condition to the dimension : only the values that apply this condition appear.

Thanks and sorry for my english.

1 Solution

Accepted Solutions
whiteline
Master II
Master II

Hi.

You don't provide the name of field for that dimension.

Try to use something like this  as calculated dimension:

=aggr(if(Sum({$ <[Type adhérent]={Collectif}, Année=>} NB_ADH_RAD_NETTE)<1 and

           Sum({$ <[Type adhérent]={Collectif}>}NB_ADH_PORTEFEUILLE) =

           Sum({$ <[Type adhérent]={Collectif}, REIMMATRICULATION={NON}, Année={$(vAnnée)} >}NB_ADH_PROD_NETTE) , [Your dimension field name], null()), [Your dimension field name])

View solution in original post

2 Replies
whiteline
Master II
Master II

Hi.

You don't provide the name of field for that dimension.

Try to use something like this  as calculated dimension:

=aggr(if(Sum({$ <[Type adhérent]={Collectif}, Année=>} NB_ADH_RAD_NETTE)<1 and

           Sum({$ <[Type adhérent]={Collectif}>}NB_ADH_PORTEFEUILLE) =

           Sum({$ <[Type adhérent]={Collectif}, REIMMATRICULATION={NON}, Année={$(vAnnée)} >}NB_ADH_PROD_NETTE) , [Your dimension field name], null()), [Your dimension field name])

Not applicable
Author

Hi,

Here what i've done :

=aggr(if(Sum({$ <[Type adhérent]={Collectif}, Année=>} NB_ADH_RAD_NETTE)<1 and

          Sum({$ <[Type adhérent]={Collectif}>} NB_ADH_PORTEFEUILLE) =

          Sum({$ <[Type adhérent]={Collectif}, REIMMATRICULATION={NON}, Année = {$(vAnnée)}>}NB_ADH_PROD_NETTE) , PARTENAIRE, null()), PARTENAIRE)

It works fine.

Thanks a lot.