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: 
laura_1
Partner - Contributor III
Partner - Contributor III

Dynamic n qualifier number in CROSSTABLE

Hi, 

Is it possible to usera variable to dynamically determine n qualifier number for CROSSTABLE function? I have used a variable and it transposes the table correctly, but QS underlines the whole table in red as if there is an error:

 
 
4 Replies
laura_1
Partner - Contributor III
Partner - Contributor III
Author

crosstable.png

Is there a way around this? 

Thanks for your help,

Laura 

martyginqo
Partner - Creator
Partner - Creator

Hello,

I'm in the same boat. I believe it still works with a dynamic value, but it still highlights as though it is a syntax error. This is always disconcerting.

 

Gui_Approbato
Partner - Creator III
Partner - Creator III

Hello,

Have you tried using single quotes to call the variable? Like Crosstable(Column,Values, '$(vVariable)')

 

 

martyginqo
Partner - Creator
Partner - Creator

Thanks for the suggestion - with quotes there's still a syntax error. The original syntax from initial post does actually run ... it's just this flagging as a syntax error which bugs me to no end. Qlik Sense seems more "fussy" than QlikView, which handles this syntax just fine.

Martin.