Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
pepe2209
Creator
Creator

Count/sum single value in multiple lines

Hello

Please look at the example to better understand my question.

I want to do a sum(count) of the number of errors per section. The sections are reoccurring over time.

DATA:

IDDatesectionnumber of errors in section
11A1
21A1
31A1
41A1
51A1
61B0
71B0
81B0
91C2
101C2
111C2
121C2
132A0
142A0
152A0
162B2
172B2
182B2
192B2
202C1
212C1
222C1
232C1

TABLE that I want to produce

sectionerrors
A1
B2
C3
total6

I hope someone can help me with this.

1 Solution

Accepted Solutions
pepe2209
Creator
Creator
Author

Yes thanks this seems to work perfectly!

Trying to figure out the formula for myself but this helps me a lot

Thanks.

View solution in original post

3 Replies
tresesco
MVP
MVP

With given data, how is C - 3 ? Can you please explain the logic?

abeyphilip
Creator II
Creator II

Hi Peter,

Are you looking for something like the Sum table in the attached eg.

Regards,

Abey

EDIT - Updated with calculation for total.

pepe2209
Creator
Creator
Author

Yes thanks this seems to work perfectly!

Trying to figure out the formula for myself but this helps me a lot

Thanks.