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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count of Distinct States based on calls from zones aggregated to State

Hello all,

Here is how my data is below:

1) So the calls total has to be first aggregated to State level from all Zones, then the state sum of calls has to be checked against 25, and report into a table if > 25. Resulting table will have month in first column, count of states with calls > 25 in second column

2) The result should still display all 12 months, even if there are months that do not have any states with > 25, it should still show that month, with a blank for state count

Thank you all.

MonthStateZoneCalls
JanAK110
JanAK210
JanAK35
JanAL19
JanAL29
JanAL39
JanIL315
FebAK15
FebAK25
FebAK35
FebAL250
FebMS3200
FebTN210
3 Replies
ziadm
Specialist
Specialist

Hi

You have to generate a master calendar and include the missing dates ...

Link this master calendar to your fact Table CALLS

Generating Missing Data In QlikView

swuehl
MVP
MVP

If you already have all months in your data, try a straight table chart with dimension Month and as expression

=Sum( Aggr( If( Sum(Calls)>25, 1,0), Month, State))

Disable 'Suppress zero values' on presentation tab.

Not applicable
Author

Thank you.  It worked!  Really appreciated.  I may have few more questions as I build through the tables/charts. Great Help.