Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Bonjour,
Dans le calcul d'une dimension, je souhaiterais effectuer cette évaluation :
Count( {$<[Durée] > {0}> } Id ) mais QV ne sait pas l'interpréter. Il n'évalue pas le signe > en tant que "supérieur à".
Comment je pourrais résoudre cela ?
J'ai pensé, dans mon script à faire quelque chose comme cela :
A la place de
LOAD
....
[Durée],
....
FROM
...
J'ai fait :
LOAD
.....
[Durée],
IF([Durée]>0,1,0) AS DuréeB,
....
FROM
....
Puis dans mon expression, je saisie la formule Count({$<DuréeB> = [1] } Id).
Ya t'il plus simple ? C'est à dire sans ajouter une colonne supplémentaire dans le LOAD à votre avis ?
Merci,
Julien
Julien,
sorry for answering in english, hope you understand.
Looking at
Count({$<DuréeB> = [1] } Id)
This is not a correct syntax, I think it should be
Count({$<DuréeB = {1} >} Id)
And this part
DuréeB = {1}
is not a condition, it's more like a set assignment operator (more like a variable assignment Let A = 1)
And if you want to create a set with all values of DureeB larger than zero, you can use an advanced search, using the condition in the search:
Count({$<DuréeB = {">0"} >} Id)
See also the Help file for more on set analysis, there are also lots of resources in the forum, and in the web, e.g.
iqlik.wordpress.com/2010/08/14/the-magic-of-set-analysis-introduction/
Julien,
sorry for answering in english, hope you understand.
Looking at
Count({$<DuréeB> = [1] } Id)
This is not a correct syntax, I think it should be
Count({$<DuréeB = {1} >} Id)
And this part
DuréeB = {1}
is not a condition, it's more like a set assignment operator (more like a variable assignment Let A = 1)
And if you want to create a set with all values of DureeB larger than zero, you can use an advanced search, using the condition in the search:
Count({$<DuréeB = {">0"} >} Id)
See also the Help file for more on set analysis, there are also lots of resources in the forum, and in the web, e.g.
iqlik.wordpress.com/2010/08/14/the-magic-of-set-analysis-introduction/
It's perfect ! Thanks you for your answer and your links !