Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
dia2021
Creator
Creator

KPI while applying max date

Hi All,

I'm trying to create a KPI by applying the sum to the particular fields in a column. I want Order Type = Clothes, shoes, pants to group and take a sum by most recent date. 

I applied this formula and it is working fine Sum({<Date={"$(=Max(Date))"}>}Order Type='Clothes') 

But I'm getting output in a negative (minus). I'm not sure why it is doing this. It is giving me -96 instead of 96.

Secondly, how can I combine another order type in the same statement??

Sum({<Date={"$(=Max(Date))"}>}Order Type='Clothes', shoes', 'pants')  This syntax is not working when I'm combining order type

Labels (1)
10 Replies
dia2021
Creator
Creator
Author

@anthonyj @Vegar Thank you so much!!!!!