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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Zeta
Contributor III
Contributor III

Consider only dimension elements for which a KPI condition applies.

Given a table with two columns as follows:

Person | Number of candy
1 | 1
2 | 1
1 | 1
3 | 1
3 | 1
1 | 1
1 | 1
3 | 1
3 | 1
3 | 1
3 | 1

The total number of candy per person should be displayed in a table chart.

=> Column 1 | Column 2
Dimension[Person] | sum(Number of candy)
1 | 4
2 | 1
3 | 5

How can I add the following condition to the table chart:
Show only all people with sum(Number of candy) > 1
=> Column 1 | Column 2
Dimension[Person] | sum(Number of candy)
1 | 4
3 | 5

Question 2:
What does the formula in the KPI chart look like if I want to show how many people ate more than one candy?
In the above case, the result should be 2.

Thx for help

Labels (5)
1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

Try this 

Count(

  Distinct

  {<

    Person = {"=Sum([Number of candy]) > 1"}

  >} Pers

on

)

View solution in original post

1 Reply
Chanty4u
MVP
MVP

Try this 

Count(

  Distinct

  {<

    Person = {"=Sum([Number of candy]) > 1"}

  >} Pers

on

)