Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
One_day_I_will_know
Contributor II
Contributor II

Filtering KPI

Hi all,

I have a  real rookie question: I want to build a KPI for which I need to filter dimensions. Everything works fine until I add two possibilities to one dimension.

This works:

Count(
{< Personnel.area = {'West'},
[Customers.Account_Class] = {'Under 100 keur'} ,
[Leads.Started.autoCalendar.YearsAgo]={[0]}>}
Leads.GUID)

This doesn't (I tried sets of commas and ors and ands without success):

Count
({< Personnel.area = {'West'} and
([Customers.Account_Class] = {'Under 100 keur'} or [Customers.Account_Class] = {'Unknown'}),
[Leads.Started.autoCalendar.YearsAgo]={[0]}>} Leads.GUID)

What is the right way to do this?


Leads.GUID)

1 Solution

Accepted Solutions
sunny_talwar

Try this

Count({<Personnel.area = {'West'}, [Customers.Account_Class] = {'Under 100 keur','Unknown'}, [Leads.Started.autoCalendar.YearsAgo] = {[0]}>} Leads.GUID)

View solution in original post

6 Replies
sunny_talwar

Try this

Count({<Personnel.area = {'West'}, [Customers.Account_Class] = {'Under 100 keur','Unknown'}, [Leads.Started.autoCalendar.YearsAgo] = {[0]}>} Leads.GUID)
One_day_I_will_know
Contributor II
Contributor II
Author

Thank you so much! It's so clear when you know it 🙂

hdombrowski
Contributor
Contributor

Apologize if this is a simple question, but I have the whole of 1 day of experience at this point. I have an expression for a KPI to identify items that are greater than 90 days that is fixed when a filter is applied. Can you please help me on how to update this expression so it is dynamic for filters?

Count({1<[Days Oustanding]={">90"}>}[Amount in loc.curr.2])

 

sunny_talwar

May be not use the 1

Count({1<[Days Oustanding]={">90"}>}[Amount in loc.curr.2])

Count({<[Days Oustanding]={">90"}>}[Amount in loc.curr.2])
hdombrowski
Contributor
Contributor

Worked! Thank you
sunny_talwar

Awesome