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

Announcements
We are aware of an issue with the Product Downloads page and looking into it.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Loop in Script

Hiya All

Something New...Loops

I have the following in a script and want to loop and say

Per Dimension Count ( Distinct(Acct)) where Dimension is greater than 0


The following numbers below are field names not values, although they contains values.


I am inner joining this to a Group

So example

LOAD Acct,

     [0],

Count(Distinct(Acct)) where [0]  > 0 as Current Month

     [1],

Count(Distinct(Acct)) where [1]  > 0 as Month1

     [2],

     [3],

     [4],

     [5],

  all the way to 72!

Labels (1)
1 Reply
Chanty4u
MVP
MVP

so what do you want?

expected output?