Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis - Total

Hello,

I am trying to calculate the Total Count (ignoring MEDIAGRP) for each TVGRP.  I am expecting value 3 for the first 4 rows and value 4 for remaining rows in the last column.

Can you please help with SET expression.  I tried below, but it did not work.

Count (TOTAL {<MEDIAGRP=>} DISTINCT PANEL_ID)

Thanks so much in advance.

Regards,

Saravanan

1 Solution

Accepted Solutions
PrashantSangle

Hi,

Try

Count (TOTAL<TVGRP> {<MEDIAGRP=>} DISTINCT PANEL_ID)

Regards

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 🙂

View solution in original post

6 Replies
ramoncova06
Specialist III
Specialist III

switch the MEDIAGRP to TVGRP, that way the total only groups by TVGRP

Count (TOTAL {<TVGRP=>} DISTINCT PANEL_ID)

Not applicable
Author

Hi Ramon,

Thanks for the quick reply.  Switching to TVGRP gives the aggregate of ALL TVGRPs (i.e. it populates 5 for all rows in last column).  I need Total of ALL MEDIAGRPs by each TVGRP

Something else you can think of?

Regards,

Saravanan

Not applicable
Author

Hi Saravanan,

Can you share a sample .qvw

Thanks,

Harika

PrashantSangle

Hi,

Try

Count (TOTAL<TVGRP> {<MEDIAGRP=>} DISTINCT PANEL_ID)

Regards

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 🙂
Not applicable
Author

Thanks Max, it worked

Not applicable
Author

Hi Harika, Attaching the file with solved example. Thanks