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: 
tabletuner
Creator III
Creator III

Maintaining the same expressions within multiple documents

Hi All,

In my qv environent i have 6 different documents for different user groups.

The 6 documents use the same data cloud.

The 6 documents use the same expressions.

My expressions contain set analysis statements like

sum({$< year={$(=max(year))} sales)

The problem i run into is that when i want to change the expression above, i haveto change it within 6 documents.

What smart way of maintainence would you advise in this situation? Is there a best practise solution for this?

Note: the expressions cant be included with the include statement because the expression in my example contains a value for year that is determined in RUNTIME...

I use the latest release of QV 9

Regards,

Tjeerd

1 Solution

Accepted Solutions
Not applicable

Load them in from a spreadsheet, then to variables.

Next you can use $ expansion in the places where you need the formula.

You can also expose the variables' value in a textbox to test changes in the set logic without having to reload the document.

View solution in original post

4 Replies
Not applicable

Load them in from a spreadsheet, then to variables.

Next you can use $ expansion in the places where you need the formula.

You can also expose the variables' value in a textbox to test changes in the set logic without having to reload the document.

tabletuner
Creator III
Creator III
Author

Could you post an example please 🙂

pover
Partner - Master
Partner - Master

See the attached Excel as an example expression repository and take a look at the following post for the script to save each expression in a variable:

http://community.qlik.com/forums/p/35606/139203.aspx

In QlikView you then just put something like $(vExpression_1) in the expression of the chart in the 6 documents and if you have to change the expression you just change it once in the Excel.

Regards.

tabletuner
Creator III
Creator III
Author

Thanks all. I got it working!

Regards,

Tjeerd