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: 
Not applicable

How do I have a dynamic dimension in a cyclic group?


Hi. I have a qvw file where I allow the users to switch between fiscal and calendar years. The selection is stored in a variable and I use the following calculated dimension in my charts to display either date dimension depending on the selection.

if(vViewMode='Fiscal',FiscalPeriod,Month)

I'm trying to use the same calculated dimension in a cyclic group but I just get  '-' instead of the dimension. What am I doing wrong?

Thanks in advance.

1 Solution

Accepted Solutions
Not applicable
Author

Hurrah. I've just figured out how to do it!

I've created a variable vViewMonth with the following value

=if(vViewMode='Fiscal','FiscalPeriod','Month')

I then set the dimension in the group to be =$(vViewMonth) and the label to =vViewMonth

View solution in original post

3 Replies
Nicole-Smith

If you're using a cyclic group for your dimension, you shouldn't use the calculated dimension you have listed above.  You should have two dimensions in the cyclic group: one being FiscalPeriod and the other being Month.

Not applicable
Author

Thanks for replying but I'd rather the users didn't have to cycle through options they didn't want.

Not applicable
Author

Hurrah. I've just figured out how to do it!

I've created a variable vViewMonth with the following value

=if(vViewMode='Fiscal','FiscalPeriod','Month')

I then set the dimension in the group to be =$(vViewMonth) and the label to =vViewMonth