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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Karthick30
Creator
Creator

Wildmatch condition with Sum function

Hi,

I have a table like below

Karthick30_0-1655401766588.png

I need to sum all the value based on classification Prod and QA separately. I used below formula.

if(wildmatch(classification,'*Prod*'),Sum(Value ) .. my result should show as 2. likewise,

if(wildmatch(classification,'*QA*'),Sum(Value ) .. my result should show as 3. But its coming as expected. Its coming as -(null).

Am I doing anything wrong here

 

Labels (3)
3 Replies
MarcoWedel

can you show the relevant part of your data model and describe where you apply this expression?

Karthick30
Creator
Creator
Author

Yes. This is my actual Formula

Karthick30_0-1655404401843.png

Column has below data

Karthick30_1-1655404442220.png

measure value has multiple 1's in that column

Karthick30_2-1655404650854.png

 

MarcoWedel

I still did not understand the context that you apply this expression to, but I assume there is no CMDB_FinalBus.segment dimension involved.

So maybe rearranging your expression to

Sum(If(WildMatch([CMDB_FinalBus.segment],'*Residential*'), Remediated_Count))

 could work for you.

Or using a set expression instead:

Sum({$<[CMDB_FinalBus.segment]={"*Residential*"}>} Remediated_Count)

 

hope this helps

Marco