Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

sum 3 counts

Hello,

Im preety new to qlikview an I have a problem which i can't solve

SITUATION

  • I have a issue database
  • have 4 status namens (sname): 'Vastgelegd',  'Verificatie', 'In Behandeling' and 'Afgehandeld'
  • I also have 3 prio names: Blocker, Critical, Minor

PROBLEM

I want to sum 3 counts where prioname = blocker and sname is not Afgehandeld :

I HAVE TRIED:

  • Count({<prioname={'Blocker'}, sname <> {'Afgehandeld'}>}iid)
  • sum(Count({<prioname={'Blocker'}, sname = {'Vastgelegd'}>}iid)

          Count({<prioname={'Blocker'}, sname = {'Verificatie'}>}iid)

               Count({<prioname={'Blocker'}, sname = {'In Behandeling'}>}iid))

Above don't work

somebody any idea how to do this?

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

try this

Count({<prioname={'Blocker'}, sname =sname - {Afgehandeld}>}iid)

View solution in original post

9 Replies
lironbaram
Partner - Master III
Partner - Master III

try this

Count({<prioname={'Blocker'}, sname =sname - {Afgehandeld}>}iid)

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Try with this expression

     Count({<prioname={'Blocker'}, sname-={'Afgehandeld'}>} iid)

Celambarasan

Not applicable
Author

no succes

I'm getting 0 as result.

lironbaram
Partner - Master III
Partner - Master III

can you post sample data

it should work

Not applicable
Author

Hi

What you have used is appropriate only thing is you should use "Double Quotes" instead of single one as mentioned below.

Count({<prioname={"Blocker"}, sname <> {"Afgehandeld"}>}iid)

If it still doesn't work, please share sample data / attachment.

Not applicable
Author

no doesn't work

  • I have 1 project in my issue database
    • In this project there are 10 "minor" (prioname=Minor) priority issues
    • In this project there are 9 "Blocker" (prioname=Blocker) priority issues
      • from the 9 "Blocker" issiues there are 5 not "afgehandeld" (afgehandeld=sname)
        •      2 are status(sname) "verification"
        •      2 are status(sname) "vestgelegd"
        •      1 is status(sname) "In behandeling"
      • from the 9 "Blocker" issiues there are 4 issues with status(sname) "afgehandeld"

Hope this makes some clear?

dbschema.png

Not applicable
Author

Is this enough info? of do you need more?

Not applicable
Author

Can you attach the sample QVW file?

Not applicable
Author

Well, i don't know what happned, But after resarting Qlikview .. the solutions which where sugested, worked!

Thnx all for the help