Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Trying to make simple calculation, tried both of below formulas, neither worked (still counts brands with Qty=0), please, help:
1. if(sum( [SalesQty]) > 0, count( distinct [Brand]),0)
2. count(
aggr(sum( {<SalesQty={">0"}>} Qty, Brand)
)
How about this
Count(DISTINCT {<Brand = {"=Sum([SalesQty]) > 0"}>} [Brand])
may be like this
count(
aggr(sum( {<SalesQty={">0"}>} Qty), Brand)
)
let's try this expression below:
count( {< Brand = {"=Sum(SalesQty)>0"} >} distinct Brand )
Hope it helps.
Maybe this
Count(if(Aggr(sum( [SalesQty]),Brand)>0,Brand))
Hi
or maybe this :
sum(if(aggr(sum(SalesQty),Brand) >0,1))
How about this
Count(DISTINCT {<Brand = {"=Sum([SalesQty]) > 0"}>} [Brand])
May be this -
count(if(sum( [SalesQty]) > 0, distinct [Brand]))
the result includes 0 values
the result returns "-"
QlikView and Qlik Sense are case sensitive, have you checked if the field names are right?