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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pivot Table and Set Analysis?

Hi everyone,

I am trying to create a report that counts in a certain way, and not sure how to go about doing that. I might have used a wrong title here, but here goes...

Suppose I have the dataset below, and I would like to create a report that calculates total values as well as counts the number of IDs whose value_1 is greater than value_2.

I am having trouble counting the number of IDs. My desired result/report is also shown below. Thank you.

DATASET:

YYYYMM              ID     Value 01      Value 02
2013031129
20130329288
20130335840
20130349150
20130414047
20130426446
20130435196

Desired Result/Report:

Total Value 1397
Total Value 2396
Total # of IDs4
# of IDs: Value 1 > Value 22
# of IDs: Value 1 <= Value 22
12 Replies
Not applicable
Author

Hi Kush,

last question (I promise). What if I would like to add values associated to those IDs, what sort of expression I need to use.  Again, thank you for your help.

Below is my desired results.

Dim_01Grand TotalMeasure 01Measure 02# IDs > Value (# IDs >)Value (# IDs <=)
9469468813
AA27927923522790
BB303303231121093
CC30730713223070
DD525219400194
EE55890089
Kushal_Chawda

i am not sure what you are looking for but see the attched one..

is it what you are looking for

Not applicable
Author

Yes, thank you so much for your help.