# Groupe des Utilisateurs Francophones

cancel
Showing results for
Did you mean:
Creator III

## 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
Champion III

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)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
14 Replies

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)])

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
Creator III
Author

Hello Anil,

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

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

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
Creator III
Author

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.

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

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
Specialist III

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)]

)

Creator III
Author

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 :

Champion III

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)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Champion

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

Tags