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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to transform expression in Dimension

Hello

i already have a bar chart with this expression sum(aggr(if(Count([Libellé])=1,1,0),[Référence mouvement 2]))

How can i create a dynamic dimension with this expression :  sum(aggr(if(Count([Libellé])=1,1,0),[Référence mouvement 2]))

This expression is to categorize the number of product [libellé] by order [Référence mouvement 2] . in this case, it count how many order have just one product

i want to have a dynamic dimension like  

= 1 [libellé]

= 2 [libellé]

= x[libellé]

= > x [libellé]

and an expression : count ([Référence mouvement 2]) or sum(value) 

How can i do that ?

thank you for all.

5 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Try this,

aggr(Count(Distinct [Libellé]),[Référence mouvement 2])


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Anonymous
Not applicable
Author

Thanks you

it seem's working

do you know how can i order this ? i'll try few thiongs but nothings works? 

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

You can promote the Dimension to top and then select the Numeric Value as sort order.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Anonymous
Not applicable
Author

Hello again

- i made a dimension like : aggr(Count(Distinct [Libellé]),[Référence mouvement 2]) = 2 (or another number)

- My expression : Count (distinct([Référence mouvement 2]))

i have some négative results?  i don't know how interpret it ? is it "normal"

?

did i made a mistake on my dimension?

Anonymous
Not applicable
Author

Yes!!

it works for the order.