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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Expression based on dimension that is not in a chart

Hi,

First of all, I'm a rookie in QV.

My problem is that I can't write a formula, that would count number of items that had sales less than 500 Eur per period.

So, I tried to write IF(SUM(Sales_amount)<500, Count(Distinct(item)).

The thing is that my chart contains not items (as dimension) but item groups and item type, but Sales_amount must be based on items, not on item groups.

So I know that somehow I should use aggr function, but I don't understand where and how. Please, help me.

Labels (1)
1 Reply
Not applicable
Author

Try like below with multi AGGR functions

IF(AGGR(Sum(Sales_Amount),item) < 500 , AGGR(Count(item),item_type))