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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Louveduval
Creator
Creator

Use Aggr only on dim

Hello, 

I try to use aggr(only( 
but I miss something 

Louveduval_0-1694768488819.png
I would like to remouve  Autre 

=aggr(only({<[FamilleStat]={"PAC","CHAUDIERES","BIOMASSE"}>}),FamilleStat)


Can you help me ?

Best regard 

Labels (3)
1 Solution

Accepted Solutions
Sohan_Patil
Contributor III
Contributor III

Hi,

You can try this expression:

 =aggr(only({<FamilleStat -= {'Autres'}>}FamilleStat),FamilleStat)

Sohan_Patil_0-1694772543407.png

 

View solution in original post

3 Replies
sbaro_bd
Creator III
Creator III

Hello @Louveduval ,

If your aim is to exclude one value from a dimension, you can simply use an IF function combined with qlik objects options : 

- Use a calculated dimension like this:

IF(FamilleStat = 'Autres', null(), FamilleStat)


- Disable the option "Include Nul values"

Regards.

Sohan_Patil
Contributor III
Contributor III

Hi,

You can try this expression:

 =aggr(only({<FamilleStat -= {'Autres'}>}FamilleStat),FamilleStat)

Sohan_Patil_0-1694772543407.png

 

Louveduval
Creator
Creator
Author

Sadly , It doesn't work 

Louveduval_0-1694779301166.png