Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
nickploeg1998
Contributor
Contributor

Count costs

Hii,

I have a question about counting costs. I got a excel row with costs per object. The problem is that from some objects the costs is "unknown". I want to som up the costs in Qlikview, but it gives errors because in the same row there are also "unknown" factors, not just numbers.

Lets hope someone can help me.

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Your field names seems to have space in between. Try putting [ ] around your field name in the expression.

View solution in original post

5 Replies
tresB
Champion III
Champion III

Do you want to sum it up or count it? If you use sum(), it should be able to sum the numeric values excluding the texts/strings by default. If you want to count the values excluding 'unknown' values, you could try using set analysis like:

Count(distinct {<cost-={'unknown'}>} cost)
nickploeg1998
Contributor
Contributor
Author

If I put that comment in Qlik it gives me a error

tresB
Champion III
Champion III

Could you share a screen shot of the error along with the expression for better understanding?

nickploeg1998
Contributor
Contributor
Author

 
tresB
Champion III
Champion III

Your field names seems to have space in between. Try putting [ ] around your field name in the expression.