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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
danimarc12
Partner - Creator
Partner - Creator

Conditions in table's dimension

Hello everyone!

I have an issue with my App. I want to display my first column Clienti  with the condition that Saldo periodo and Saldo prec are <> 0. So my expected records should be seven.

danimarc12_0-1670363588427.png

How can I set a condition in a dimension?

I've tried as you can see
danimarc12_1-1670363824130.png

but I display an error
danimarc12_2-1670363867965.png

Could anyone help me?

Thanks to all!

Labels (1)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

Add a calculated dimension as below

=   AGGR(    if(  ExpressionForSaldoPre>0 and ExpressionForSaldoPeriodo > 0 , Clienti)    ,   Clienti  )

uncheck show null values for this dimension

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

2 Replies
joseph_morales
Creator III
Creator III

Hi @danimarc12 ,

You can try this:

Aggr(

      if( conditions, cliente_c)

,cliente_c)

Best Regards,
Joseph Morales
vinieme12
Champion III
Champion III

Add a calculated dimension as below

=   AGGR(    if(  ExpressionForSaldoPre>0 and ExpressionForSaldoPeriodo > 0 , Clienti)    ,   Clienti  )

uncheck show null values for this dimension

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.