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

Sum (A) when B equal 1,2 and distinct C

Hi team,

I am new to Qlikview and have a request on my Dashboard to publish the data as per below :

Columns I have are - ID, Matched and Entries

From the above I need Sum of Entries when Matched is 1 and 2, Distinct ID

Did try this expression excluding Distinct it works fine but I am not able to guess where to include DISTINCT ID

SUM({<[Matched]={'1'}> + <[Matched]={'2'}>}[Entries])

Appreciate your time and support

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

May be this...

Sum(Aggr(
Sum(DISTINCT {<[Matched] = {'1', '2'}>} [Entries])
, ID))

View solution in original post

3 Replies
PrashantSangle

try below

Sum({<Matched={1,2}>}Entries)

Regards,
Prashant Sangle
Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
sunny_talwar

May be this...

Sum(Aggr(
Sum(DISTINCT {<[Matched] = {'1', '2'}>} [Entries])
, ID))
richard24best
Creator
Creator
Author

Thanks Sunny for your prompt support, it worked.