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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Clever_Anjos
Support
Support

Aggregation on Dimension

I have a dataset like Excel attached (please refer to Help with Set Analysis and aggregation‌‌ as requirement)

stalwar1‌ brightly helped me to find a way of creating my expression to find

(aggregated on [ID Som]) how many segments have a [ID Som] that have a segment = Silence of Duration between 22  and  66 (example) and also have segments = MUSIC of duration between 5 and 20.

In this sample I should have:

  • 787 - 4
  • 882 - 0 (It has SILENCE but hasn´t MUSIC)

Now I have to create a graph like this

how many [ID Som] have 2 segments, ow many [ID Som] have 3 segments and so on.

Any idea how to solve this?

Capturar.PNG

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

6 Replies
sunny_talwar
MVP
MVP

Check if the attached meets your requirement?

Capture.PNG

sunny_talwar
MVP
MVP

Updated sample

Capture.PNG

Clever_Anjos
Support
Support
Author

stalwar1‌, you really deserve to be at Qlik Mount Olympus

sunny_talwar
MVP
MVP

Where is that taking place, I am in

Anonymous
Not applicable

Could you please also post the expression in this thread, so I can also learn.

No Qlik View and can not open the attached file.

Thanks!

Clever_Anjos
Support
Support
Author

My final expression use some variables but these expression is correct

=Aggr(Count(DISTINCT {<[ID Som] = {"=(Count({<[Tipo Segmento] = {'SILENCE'}, [Duracao Segmento] = {'>=22<=66'}>}[Duracao Segmento]) > 0 and

  Count({<[Tipo Segmento] = {'MUSIC'}, [Duracao Segmento] = {'>=5<=20'}>}[Duracao Segmento]) > 0)"}>*

  (<[Tipo Segmento] = {'SILENCE'}, [Duracao Segmento] = {'>=22<=66'}>+<[Tipo Segmento] = {'MUSIC'}, [Duracao Segmento] = {'>=5<=20'}>)} [ID Segmento]), [ID Som])