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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
prees959
Creator II
Creator II

Using Cyclic Dimension in chart expression

Hi,

I currently have this expression in a 100% stacked bar chart :

=sum([Count])/sum(TOTAL <Date>   [Total ])

I would like to have a Cyclic Date group as a dimension.  is it possible to use a cyclic group in the expression in place of the Date dimension??

Many thanks.

Phil

1 Reply
swuehl
MVP
MVP

You can either use a dollar sign expansion with GetCurrentField() to get the active field of your dimension group, or just use all fields of the group in the TOTAL field list, like

=sum([Count])/sum(TOTAL <Date, Month, Year>   [Total ])


or something like


=sum([Count])/sum(TOTAL <[$(=GetCurrentField(DateGroup))]>   [Total ])