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: 
Not applicable

Sum if field not starts with cm

Hi,

I want to sum the field 'price' if the field 'type' does not start with cm.

And I also want to sum a other field if the orderDate is between the chosen date and 10 weeks before the chosen date.

I tried to modify this =SUM({$<Year={$(=Only(Year)-1)}>} Sales) to make it work but I can't get it to work.

Kind regards,

11 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Then try this way

=Sum(If( Factuurnummer LIKE 'CN*' OR IsNull(Factuurnummer) OR Len(Factuurnummer) = 0,

     Sum({<Factuurnummer-={"CN*"}>} Invoerbedrag)))

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Doesn't work either.