Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
danosoft
Specialist
Specialist

Filter between two Date

Hi i have this set analisys in a my straight table:

{<DATA_OUT={">$(=Date($(vFineMonthContrAlt), 'DD/MM/YYYY'))"},DATA_OUT={"<=$(=Date($(vFineMonthContrAltSCAD), 'DD/MM/YYYY'))"}>}

the value  of my variable $(vFineMonthContrAlt) is the end of the month i choose (ex: 31/03/2018)

the value  of my variable $(vFineMonthContrAltSCAD) is the end of the next month i choose (ex: 30/04/2018)

so with this set analisys i thought i can take record in the range :

DATA_OUT > 31/03/2018     and    DATA_OUT <= 30/04/2018

but this is not......

i look it only consider the second filter DATA_OUT <= 30/04/2018 and not the first..... why?

thanks

1 Solution

Accepted Solutions
sunny_talwar

May be try this

Sum({<DATA_OUT = {">$(=Date($(vFineMonthContrAlt), 'DD/MM/YYYY'))<=$(=Date($(vFineMonthContrAltSCAD), 'DD/MM/YYYY'))"}>} CONSUMO_TOT_ANNUO)

View solution in original post

6 Replies
olivierrobin
Specialist III
Specialist III

hello

if you want to select a range, you should code

Date={'>MinValue<MaxValue'}

danosoft
Specialist
Specialist
Author

so in my case, how can i change my set analisys?

{<DATA_OUT={">$(=Date($(vFineMonthContrAlt), 'DD/MM/YYYY'))"},DATA_OUT={"<=$(=Date($(vFineMonthContrAltSCAD), 'DD/MM/YYYY'))"}>}

olivierrobin
Specialist III
Specialist III

try something like that

{<DATA_OUT={">$(=Date($(vFineMonthContrAlt), 'DD/MM/YYYY'))"}<=$(=Date($(vFineMonthContrAltSCAD), 'DD/MM/YYYY'))"}>}

danosoft
Specialist
Specialist
Author

Sorry but it set wrong sintax your expression, my expression is that, how can i change it?

Sum({<DATA_OUT={">$(=Date($(vFineMonthContrAlt), 'DD/MM/YYYY'))"},DATA_OUT={"<=$(=Date($(vFineMonthContrAltSCAD), 'DD/MM/YYYY'))"}>} CONSUMO_TOT_ANNUO)

sunny_talwar

May be try this

Sum({<DATA_OUT = {">$(=Date($(vFineMonthContrAlt), 'DD/MM/YYYY'))<=$(=Date($(vFineMonthContrAltSCAD), 'DD/MM/YYYY'))"}>} CONSUMO_TOT_ANNUO)

olivierrobin
Specialist III
Specialist III

sorry,

maybe like this

{<DATA_OUT={">$(=Date($(vFineMonthContrAlt), 'DD/MM/YYYY'))<=$(=Date($(vFineMonthContrAltSCAD), 'DD/MM/YYYY'))"}>}