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: 
Not applicable

How to use Aggregate function in the Text Box

Hello,

I am using the following expression in the text box.

=count (  IF ([Primary Item Quantity]  + sum( [Alternate Item Quantity] )  < [Safety Stock Quantity], [Inventory Item]))

My objective is to find count of item  with Primary and Alternate quantity is less than safety stock.

Please note, Alternate item  is a separate table with one to many relationships with Primary Item.

Above expression gives error.

Kindly Advice.

Abubakker.

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Perhaps this:

count({<[Inventory Item]={'=only([Primary Item Quantity])+sum([Alternate Item Quantity])<only([Safety Stock Quantity])'}>}[Inventory Item])

If not, please post a document that demonstrates the problem.


talk is cheap, supply exceeds demand