Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
fmazzarelli
Partner - Creator III
Partner - Creator III

agg value from a to z

Hi Community,

i need to sum all values

Excluding all alphabetic values and including only all numeric

To include all values ... my idea is to use *A-Z

To include only numeric.... my idea is to use -=

So that,

sum({$<Commessa-={"*A-Z"}>}TotOreLavorate)

but it doesn't work.

Could you help me?

4 Replies
petter
Partner - Champion III
Partner - Champion III

Qlik Sense will only sum numeric values anyway so there is no reason excluding them. Even the average function Avg works correctly.

If you need to count only numeric values you have a special function for that named NumericCount.

OmarBenSalem

try this:

Sum({<Commessa={"=IsNum(Commessa)=-1"}>}TotOreLavorate)

OmarBenSalem

hope u'll answer this time... Fabio

Thiago_Justen_

Fabio,

If you are not confortable to use NumericCount, maybe you should try a conditional sum.

Sum(If(IsNum(YOUR_FIELD)=-1,YOUR_FIELD))

Returns -1 (True) if the expression can be interpreted as a number, otherwise 0 (False).


See: https://help.qlik.com/en-US/sense-cloud/Subsystems/CloudHub/Content/Scripting/LogicalFunctions/logic...

Cheers

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago