Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
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.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

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
tresesco
MVP
MVP

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

tresesco
MVP
MVP

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

nickploeg1998
Contributor
Contributor
Author

 
tresesco
MVP
MVP

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