This field is required.
Only these extensions are allowed(.jpg, .JPG, .jpeg, .JPEG, .gif, .GIF, .png, .PNG)
Tags cannot contain the characters ' /, \\, #, ?, or ; >,< '
Only these extensions are allowed(.zip,.ZIP,.pdf,.PDF,.qvf,.QVF,.qvw,.QVW)
If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.
I have a measure: sum(a)/sum(b)
I want to count how many objects, per day and in a table, have crossed a defined threshold.
I can get what I want with an if statement, but it is slow. Is there any way to write a set analysis expression to do this?
sum(aggr(if((sum(a) / sum(b)) < 1000, 1, 0),OBJECT, timestampDate))
Can you create an aggregate table in your data model:
,if((sum(a) / sum(b)) < 1000, 1, 0) as ThresholdFlag_Date_Object
create and join by composite key (timeStampDate & '-' & timestampDate)
or if you only need by date...
,sum(MeasureFlag) as ThresholdFlag_Date
group by timestampDate
drop table aggr_object_date;
and front-end would just be: sum(ThresholdFlag_Date)