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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
ruben_moya
Creator
Creator

Ignore selection in field, even when same dimension is selected

Dear Experts, 

I'm having the following problem.

This expression allows me to get a list of all the companies in my data whose benefits (vL.Total_amount) are higher than a certain amount:

CONCAT(IF(AGGR($(vL.Total_amount),COMPANY_NAME)> 50000 ,COMPANY_NAME),'|')

I'd need that list to ignore any selection in the field COMPANY_NAME. Is that even possible? Does it make sense?

I need to get  a list of all the companies that meet that condition independently of the selections in the field COMPANY_NAME.

I've tried using the following expression. It works when I want to ignore other fields, but not with COMPANY_NAME:

concat(aggr(Only({<COMPANY_NAME=>}COMPANY_NAME),COMPANY_NAME),'|')

Thanks a lot for your time!

Labels (1)
1 Solution

Accepted Solutions
agigliotti
Partner - Champion
Partner - Champion

what about:

=CONCAT( {<COMPANY_NAME>}
IF(
AGGR( Sum( {< COMPANY_NAME, flag_X = {'3'} >} total_amount )COMPANY_NAME) > 50000 COMPANY_NAME ), '|' )

?

View solution in original post

6 Replies
agigliotti
Partner - Champion
Partner - Champion

Hi,
Maybe this:

=CONCAT( {<COMPANY_NAME>}
IF(
AGGR( $(vL.Total_amount), COMPANY_NAME) > 50000 , COMPANY_NAME ), '|' )

also add {<COMPANY_NAME>} in your vL.Total_amount variable expression.

I hope it can helps.

ruben_moya
Creator
Creator
Author

Hi  ,

I've tried what you suggested and still not working. Once you select one value in the dimension COMPANY_NAME, the list gets automatically filtered.

agigliotti
Partner - Champion
Partner - Champion

how does your variable vL.Total_amount  looks like?

ruben_moya
Creator
Creator
Author

It actually has another variables involved, but in the end it's something like:

Sum({< flag_X={'3'}>} total_amount)

agigliotti
Partner - Champion
Partner - Champion

what about:

=CONCAT( {<COMPANY_NAME>}
IF(
AGGR( Sum( {< COMPANY_NAME, flag_X = {'3'} >} total_amount )COMPANY_NAME) > 50000 COMPANY_NAME ), '|' )

?

ruben_moya
Creator
Creator
Author

Thanks a lot! that worked perfectly.

Can you explain me the solution? If I've understood correctly, my problem was that I was ignoring the field outside of the function concat. 

 

Thanks again.