Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear Qlik Community,
I would expect that the below Expression would return 58.072. Instead it takes the entire count of 63.338.
Count( {$<[PO creation time]={'a. same day'}>} [PurchDoc] )
I believe this is the result of the Calculated Dimension [PO creation time] which is used in the Expression.
Is there a way to handle this?
P.S. see attached print screens for more information.
Only physical field names can be used on the LHS of a set expression. So this expression will be ignored giving you the entire count. The simplest workaround is to use an If
=Count(If([PO creation time] = 'a. same day', PurchDoc))
Hi Jonathan,
When using your expression an error pops up: Bad field name: [PO creation time].
Hi Jonathan,
FYI. I've added a Sample file. This might be useful to play around with the Expression.
Try adding a DISTINCT after the count.
Hope this helps you thanks
=Count({ $<[C_PO creation time]={'<=0'}>} [PurchDoc] )