Qlik Community

Ask a Question

App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
April 22, 2PM EST: Learn about GeoOperations in Qlik Sense SaaS READ MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
jfdierckx
Partner
Partner

How to share master items between applications ?

The Master Item feature in Qlik Sense allows you to define complex expressions (including Set Analysis calculations for instance) as reusable measures for the end-users.

Currently, the Master Items are defined at application level, and hence, can be shared within the application.

What would be the best way to share these master item definitions between different applications ?

14 Replies
maxwell_marchand

There is no native way to do this in Qlik Sense yet, 

However have recently created a tool that helps you do this by saving Master Items in an excel file. If you're interested check out our Master Item Manager extension on Qlik Branch.

https://community.qlik.com/t5/Qlik-Sense-Enterprise-Documents/Introducing-The-GINQO-Master-Item-Mana...

https://developer.qlik.com/garden/5c3d224d30f9e70010a8e7be

max31
Contributor III
Contributor III

Hi @JonnyPoole 

You gave an example on how to create a variable from a dimension.

How would you load all rows of the Excel file at the same time? (and not just 'Regions')

Thanks for your help.

Max

rogeriogyn
Partner
Partner

You can use qdevops command from https://github.com/rogerio-faria/qdevops

So you can schedule these commands. Example:

1 - Export the master measures to a file

qdevops -u=node1.txt -m=export,xxxx-x-x-xxx-xxxxx-xx,metrics.txt

2 - Once, measures are stores in vars.txt, just import to the other app (may be other server), you can use a .bat file

qdevops -u=node1.txt -m=import,yyyy-y--yyyy-yyyyyy,metrics.txt
qdevops -u=node2.txt -m=import,2222-22222-222-2222,metrics.txt
qdevops -u=node2.txt -m=import,3333-3333-3333-3333,metrics.txt

 

bugsysiegals
Contributor II
Contributor II

I currently have 150 Master Items of KPI's which have similar but slightly different set analysis per region.   A simple find/replace would allow me to updates them as needs change within minutes; however, I'm currently doing this manually in 5+ hours.  I'm happy to find this post and wonder if I export the Master Items, modify the file with find/replace, can I import them back into the same application and overwrite the existing Master Items for my purpose?

maxwell_marchand

Hey there, thanks for your inquiry. Yes you definitely can Export the
Master Items, add them to the template file, and re-import them back into
your application!
Just note that he process you are describing may require some slight
modification for the exported Master Items once they are in your template
file

Let me know if you have any additional questions!