Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
In application There are two dates eg-DATEA ,DATEB, Requirement is that DATEB-DATEA we did that fine in straight table,
but we are getting negative vaues in some cases, how negative values should show as 0 or dont show any value delete that record
Note:: should do in back end,plz i want logic for this
Hi satish,
I need some clarification, Are you subtracting dates here?
If you clarify this I will try to post answer.
If my understanding is correct, You can find solution in attached .qvw.
Hope it helps you
BR
Susvith
Hi satish,
I need some clarification, Are you subtracting dates here?
If you clarify this I will try to post answer.
If my understanding is correct, You can find solution in attached .qvw.
Hope it helps you
BR
Susvith
If((DATEB-DATEA) <0,0,(DATEB-DATEA) ) as FieldName
rangemax(0, DATEB-DATEA) as newfielddatediff
hi,
requirement is dateA and dateB two dates if dateA-dateB(subtraction) then negative values are coming in chart they want to remove negative vale recors from application or change them to zero this shoulb be in back end
Hi satish,
Then I guess I got it right. Did you check the qvw attached ?
BR
Susvith
Hi Susvith,
its working,thanku for your time.
for Null values:
LOAD DATEB,
DATEA,
If(DATEB>=DATEA,DATEB-DATEA) as Days
FROM ...
regards
Marco