Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
FranciscoC
Contributor II
Contributor II

Ayuda con funcion en set analysis

 

Buen día comunidad. Podrá darme una mano para pasar la siguiente función a Set analysis:

Sum(if(Item='Compra' and Fecha>= today() and MonthEnd(Fecha)=MonthEnd(AddMonths(Today(),+1)),Pte_Entrega_Compra))*-1

donde excluya tambien las selecciones en 'PrecioCto' y 'TipoBoleto'.

Llego hasta la siguiente función:  

Sum({$<PrecioCto=,TipoBoleto=,Item={'Compra'},Fecha={">=$(=Today())"}>}Pte_Entrega_Compra)

Pero tengo error al intentar agregarle la condición: MonthEnd(Fecha)=MonthEnd(AddMonths(Today(),+1)

 

gracias!

 

Labels (1)
1 Solution

Accepted Solutions
MatheusC
Specialist
Specialist

maybe this:

Sum({$<PrecioCto=,TipoBoleto=,Item={'Compra'},Fecha={">=$(=Today())"} >} if(MonthEnd(Fecha) = MonthEnd(AddMonths(Today(),1)),Pte_Entrega_Compra))


- Regards, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!

View solution in original post

2 Replies
MatheusC
Specialist
Specialist

maybe this:

Sum({$<PrecioCto=,TipoBoleto=,Item={'Compra'},Fecha={">=$(=Today())"} >} if(MonthEnd(Fecha) = MonthEnd(AddMonths(Today(),1)),Pte_Entrega_Compra))


- Regards, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!
FranciscoC
Contributor II
Contributor II
Author

Excelente, muchas gracias!!

 

Saludos!