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

count max if

Hi Guys,

I have here a scenario which I only wanted to count the ID conversation with the last segment start time and with segment type as 'wrapup'.

Wrapup.PNG

since there is multiple id session for every id conversation. This is the desired result.

wrapupdesiredresult.PNG

Thanks in advance!

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

In a table with ID:Conversation and ID:Session as dimensions, you could use this for the required result:

If(FirstSortedValue({<[Segment Type] = {'wrapup'}>} [ID:Session], -[Segment Start Time]) = [ID:Session], 1, 0)


Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

1 Reply
jonathandienst
Partner - Champion III
Partner - Champion III

In a table with ID:Conversation and ID:Session as dimensions, you could use this for the required result:

If(FirstSortedValue({<[Segment Type] = {'wrapup'}>} [ID:Session], -[Segment Start Time]) = [ID:Session], 1, 0)


Logic will get you from a to b. Imagination will take you everywhere. - A Einstein