Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
ecabanas
Creator II
Creator II

Help with the function

I have the following table:

itemid     Cost

99999    9

trans     0

trans     5

123       9

I would like to count the items wich will be "trans" and with 0 cost

Count({<[ITEMID]={'TRANS'}},{[COST]={'0'}>})

Thank's everyone!!

Eduard

10 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Something like

          Count({<[ITEMID]={'TRANS'}, [COST]={'0'}>} Distinct itemid)

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
ecabanas
Creator II
Creator II
Author

It doesn't work, no results found :s

jonathandienst
Partner - Champion III
Partner - Champion III

Qlikview is case sensitive - adjust the expression to show the field names in the correct case.

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
ecabanas
Creator II
Creator II
Author

Hi Jonathan,

I know the case sensitive problem, but this is not the problem, all is upper case!!!

and is still without working!!!

thank's for your patience!!!

jonathandienst
Partner - Champion III
Partner - Champion III

Eduard

You will need to provide more information - is it returning null, zero or the wrong value? What is the actual expression you tried?

I suggest that you post your model or a sample illsutrating the problem so that it can be looked at in more detail.

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
sivarajs
Specialist II
Specialist II

Check the attachment

ecabanas
Creator II
Creator II
Author

See the example attached,

thank you every one!!!

Not applicable

Hi,

Use below exp.. it is working for me..

 

count

({<itemid={'trans'},Cost={0}>}itemid

)

Regards,

Chandra

ecabanas
Creator II
Creator II
Author

Hi Chandra,

If I only use the first condition it works, but if I add the Cost condittion doesnt work!!! and this combination exists 😉

count ({<itemid={'trans'},Cost={0}>}itemid)


thank's