Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
YannikPrill
Contributor II
Contributor II

Indicator if a date is exceeds a certain date

Hey QLIK Brains,

I have a table that dispalys two dates. Lets say the inputs are [A] for date A and [B] for date B. I now need a third column that indicates if date B exceeds date A. Maybe the field could turn red or sth. 

 

Also I need to count how many times date B exceeded date A. Maybe that number could be displayed as a KPI or sth. like that. 

 

Thx in advance for your help 🙂 

 

Greets,

Yannik

 

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

You can just add one if statement with condition and create a new flag  for example.

 

Load * , If(DateB > DateA,1,0) as DateBExceedFlag

From xyz;

 

Now you can just Sum DateBExceedFlag to find the total such dates.

 

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

You can just add one if statement with condition and create a new flag  for example.

 

Load * , If(DateB > DateA,1,0) as DateBExceedFlag

From xyz;

 

Now you can just Sum DateBExceedFlag to find the total such dates.

 

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
YannikPrill
Contributor II
Contributor II
Author

Thanks Kaushik,

 

that worked 🙂 

 

I marked it as a solution!

 

Greets,

Yannik

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Good to know that.

Cheers,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!