Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

hammermill21
Contributor II

Calculation Condition for KPI

Hi,

Today is my day of questions!

I have a KPI that I want it to show only when a date is selected.

The Inspection Date expression is: =Date(Floor([CREATED DATE]), 'MMM DD, YYYY')

The condition I am trying is: =Count(Date(Floor([CREATED DATE]), 'MMM DD, YYYY')) <= 1

But it's not working.

Thanks

1 Solution

Accepted Solutions
atkinsow
Valued Contributor II

Re: Calculation Condition for KPI

building on yours how about

=Count(DISTINCT Date(Floor([CREATED DATE]), 'MMM DD, YYYY')) <= 1

11 Replies
atkinsow
Valued Contributor II

Re: Calculation Condition for KPI

can you do

=GetSelectedCount([Created Date])=1

MVP
MVP

Re: Calculation Condition for KPI

Do we have calculation conditions in Qlik Sense now?

atkinsow
Valued Contributor II

Re: Calculation Condition for KPI

Probably not.  I didn't notice this was the Sense forum.

But I would guess she's trying to put in an IF statement.

IF(GetSelectedCount([Created Date])=1,Date(Floor([CREATED DATE]), 'MMM DD, YYYY'))

beck110979
Valued Contributor III

Re: Calculation Condition for KPI

Hi Elizabeth,

what do you mean with calculated condition for KPI, do you mean an appearance if you select any values, if yes, in qlik sense it is not possible to hide any objects by selecting of data

i hope this info helps you

Beck

hammermill21
Contributor II

Re: Calculation Condition for KPI

Hey Beck,

I am able to hide an object until a building is selected. But when I try with the date it doesn't work.

Condition.JPG

hammermill21
Contributor II

Re: Calculation Condition for KPI

No he if statement isn't what I need, I've already tried that.

Thanks

hammermill21
Contributor II

Re: Calculation Condition for KPI

Hey Sunny,

Yes, I can do it when setting up for a Building but not with the date.

Condition.JPG

atkinsow
Valued Contributor II

Re: Calculation Condition for KPI

Did you try just

=GetSelectedCount([Created Date])=1

hammermill21
Contributor II

Re: Calculation Condition for KPI

I did that one also and nothing. Today is not my day with Qlik lol