Groupe des Utilisateurs Francophones

Vous êtes francophone? Ce groupe est pour vous. Venez découvrir comment démarrer avec Qlik Sense et QlikView, poser vos questions et partager vos tutos et astuces avec les membres de notre communauté.

Highlighted
Contributor II

Set analysis : Filter dimension

Bonjour,

Je souhaiterai avoir tous les 'Lib.Rayon(ref)' quand ma colonne 'Cd.Univers(ref)' = 83 avec un set analysis.

Je penses utiliser la fonction "IF" dans mon expression, cependant je bloque un peu

Merci d'avance

1 Solution

Accepted Solutions
Esteemed Contributor II

Re: Fonction IF

Hi,

You can't SUM() a text field!

if you only want to see [Lib. Rayon (ref)] where [Cd.Univers(ref)]=83 use the ONLY() function in a ListBox with AGGR or below sum Function in a Table

in a ListBox

AGGR( ONLY ( {\$<[Cd.Univers(ref)]={'83'}>} [Lib. Rayon (ref)] ) , [Lib. Rayon (ref)]  )

OR in a table with

Dimension = [Lib. Rayon (ref)]

Measure = Sum({\$<[Cd.Univers(ref)]={'83'}>}1)

14 Replies
MVP

Re: Filtrer dimension set analysis

Looks set analysis syntax wrong? Try this? The first one strike through and add parenthesis in the end

=Sum({\$<[Cd. Univers (ref)]={'83'}>} [Lib. Rayon (ref)])

Life is so rich, and we need to respect to the life !!!
Contributor II

Re: Filtrer dimension set analysis

Hello Anil,

I try you syntax but i have this error:"Dimension is not valid"

MVP

Re: Filtrer dimension set analysis

It's clearly stating the issue, What dimension you used for. Can you hit Fx and check the validation ??

Life is so rich, and we need to respect to the life !!!
Contributor II

Re: Filtrer dimension set analysis

That is the syntax i use in "fx" :

But , I think i need to use "if" expression for resolv my problem

if [Cd. Univers (ref)]={'83'} then i want to see the  [Lib. Rayon (ref)].

But i don't know how to transform that in QS becuase i'm begginer.

MVP

Re: Filtrer dimension set analysis

In UI the set analysis tool is same for QIX engine to both. To your question. Can you try that expression as measure / Sum(1) and Dimension as [Lin. Rayon (ref)]

Update - There is a text in image from that field. Hence, it won't happen. Can you help us your intend to show

Life is so rich, and we need to respect to the life !!!
Valued Contributor II

Re: Filtrer dimension set analysis

Bonjour

Sum, Avg, Min, Max, etc sont des agrégations qui requièrent l'utilisation de Aggr() pour être utilisées comme dimension

Donc essayes ceci

Aggr(

Sum({\$<[Cd.Univers(ref)]={'83'}>} [Lib. Rayon (ref)])

,[Lib. Rayon (ref)]

)

Contributor II

Re: Filtrer dimension set analysis

Bonjour Bruno,

J'ai utilisé votre syntax sauf que je ne vois pas les libélés rayons qui sont égaux à 83, à la place je vois que des zéros.

Au lieu de voir ceci :

Esteemed Contributor II

Re: Fonction IF

Hi,

You can't SUM() a text field!

if you only want to see [Lib. Rayon (ref)] where [Cd.Univers(ref)]=83 use the ONLY() function in a ListBox with AGGR or below sum Function in a Table

in a ListBox

AGGR( ONLY ( {\$<[Cd.Univers(ref)]={'83'}>} [Lib. Rayon (ref)] ) , [Lib. Rayon (ref)]  )

OR in a table with

Dimension = [Lib. Rayon (ref)]

Measure = Sum({\$<[Cd.Univers(ref)]={'83'}>}1)

Esteemed Contributor

Re: Fonction IF

My bad ! i didn't even look at the table above..