Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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 III
Specialist III

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 III
Specialist III

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!