Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Qliksense_77
Creator
Creator

If identical dates and id then sum

Hi,

I have data like below . The red text shows the measure that i am searching for.

When id and dates are identical, and the names starts with "b*" and "c*", then I only want to sum rows where name starts with "c". 

Can somebody help?

 

IdDateNameValueSum
110-10-2020a*11
211-10-2020b*22
312-10-2020b*30
312-10-2020c*44
413-10-2020a*55
413-10-2020b*66
1 Solution

Accepted Solutions
OmarBenSalem

try this :

if(index(concat (distinct total <Id,Date> Name),'b*')>0 and
index(concat (distinct total <Id,Date> Name),'c*')>0,sum({<Name={'c*'}>}Value),sum(Value))

Result :

Capture.PNG

View solution in original post

2 Replies
OmarBenSalem

try this :

if(index(concat (distinct total <Id,Date> Name),'b*')>0 and
index(concat (distinct total <Id,Date> Name),'c*')>0,sum({<Name={'c*'}>}Value),sum(Value))

Result :

Capture.PNG

Qliksense_77
Creator
Creator
Author

Perfect, thanks😀