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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources 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 II
Specialist II

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

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!