Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
cristianj23a
Partner - Creator III
Partner - Creator III

Calculate amount different from the selected date

Hello
I am trying to calculate the amount different to the selected date. The date is accumulated, I mean that if you filter 05/31/2018 you must calculate the amount greater than May.Example:

I am filtering until May of 2018 and I like to import 1,892.12 dollars but it is not what I want.

Captura.PNG

 

If you filter until May 2018 you must calculate the amount from June 2018 to the current date, which should be 136.29 dollars.

 

 Captura.PNG

please help me with this topic.
I attach the qvw.
Greetings.

 

 

https://www.linkedin.com/in/cristianjorge/
Do not forget to mark as "Accepted Solution" the comment that resolves the doubt.
Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

Try these expression

Importe USD

Sum( {<%OPERACIÓN={'PRESTAMOS'}, MesAño, Fecha. = {"$(='>' & Date(Max(Fecha.), 'DD/MM/YYYY') & '<=' & Date(Today(), 'DD/MM/YYYY'))"},Cuenta.=,Rubros=,[Centro Coste]>}  [Importe USD])

Importe PEN

Sum( {<%OPERACIÓN={'PRESTAMOS'},MesAño, Fecha. = {"$(='>' & Date(Max(Fecha.), 'DD/MM/YYYY') & '<=' & Date(Today(), 'DD/MM/YYYY'))"},Cuenta.=,Rubros=,[Centro Coste]>}  [Importe PEN])

View solution in original post

1 Reply
sunny_talwar

Try these expression

Importe USD

Sum( {<%OPERACIÓN={'PRESTAMOS'}, MesAño, Fecha. = {"$(='>' & Date(Max(Fecha.), 'DD/MM/YYYY') & '<=' & Date(Today(), 'DD/MM/YYYY'))"},Cuenta.=,Rubros=,[Centro Coste]>}  [Importe USD])

Importe PEN

Sum( {<%OPERACIÓN={'PRESTAMOS'},MesAño, Fecha. = {"$(='>' & Date(Max(Fecha.), 'DD/MM/YYYY') & '<=' & Date(Today(), 'DD/MM/YYYY'))"},Cuenta.=,Rubros=,[Centro Coste]>}  [Importe PEN])