Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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)
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)])
Hello Anil,
Thanks you for your feedback,
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 ??
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
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)]
)
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 :
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)
My bad ! i didn't even look at the table above..