Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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
Creator

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