Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I need to show the immeditdate first record which is greater than today() in a KPI box.
In the below example I want to show the highlighted one(0 Years 5 months 11 days) in KPI box.
Logic to derive "Years until next Review"
if(num([review date])-$(vTodaysDateNum)<0,null(),
div(num([review date])-$(vTodaysDateNum),365) & ' Years ' &
div(mod(num([review date])-$(vTodaysDateNum),365),30) & ' months ' &
mod(mod(num([review date])-$(vTodaysDateNum),365),30) & ' days') as "Years until next Review"
Thanks..
By first record you mean the record with the shortest lowest "Years until next Review" value.
You could try just using the following expression
=MinString("Years until next Review")
any suggestions please.
By first record you mean the record with the shortest lowest "Years until next Review" value.
You could try just using the following expression
=MinString("Years until next Review")
You need to add the condition within the where-clause, maybe with something like:
where MyCalculation >= 0 and MyCalculation <= 365;
and MyCalculation might be just: MyDate - today().
Beside this I could imagine that using a simple interval() formatting instead of the complex string-concatenation also returned the wanted period-information.
thanks for sharing