Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I need to make a conditional sum and I´m having many problems to get it. Need to sum the sales in 2018. This is thes expresion I´m using but doesn´t go on:
SUM({<[2018.FECHA EX] = {">31/12/2017"}>}[2018.BASE IMPONIBLE])
[2018.FECHA EX] and [2018.BASE IMPONIBLE] are fields of the tables both of them.
I´ve read several posts about this but t I don´t get to resolve it.
Thanks.
The text box show 12/31/18
Qlik sense has stored directly the dates as MM/DD/YYYY, making this change the expression you told me go on!!
SUM({<[2018.FECHA EX] = {">$(=DATE#('01/01/2017','MM/DD/YYYY'))"}>}[2018.BASE IMPONIBLE])
Can you recommend me any post or articule that explain all this?
Thank you very much for your help.
May be this
SUM({<[2018.FECHA EX] = {">$(=DATE#(31/12/2017,'DD/MM/YYYY'))"}>}[2018.BASE IMPONIBLE])
Please make sure [2018.FECHA EX] is a date and not a string.
Put max([2018.FECHA EX]) in a text box and show the output.
try the below as well
SUM({<[2018.FECHA EX] = {">$(=DATE#('31/12/2017','DD/MM/YYYY'))"}>}[2018.BASE IMPONIBLE])
, you should not hard code the value though.
The text box show 12/31/18
Qlik sense has stored directly the dates as MM/DD/YYYY, making this change the expression you told me go on!!
SUM({<[2018.FECHA EX] = {">$(=DATE#('01/01/2017','MM/DD/YYYY'))"}>}[2018.BASE IMPONIBLE])
Can you recommend me any post or articule that explain all this?
Thank you very much for your help.