Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Discuss and learn more about Qlik Sense app development and usage.
Q) How can we render the same chart multiple times in our mashup, so that the passed parameter only affects the one I want.
We are building an embedded solution with Qlik Sense using the Mashup API. We want to build a chart (KPI, Line Graph, etc) where the Measure expression accepts a variable so that we can reuse the same set analysis expression, but accept different parameters, and thus render the exact same chart (via objectId) in the same mashup host page.
While it might be an option to create multiple separate charts, each with there own objectId, we wish to explore the DRY principle (Don't Repeat Yourself).
Example of Natural Reuse:
We'd rather create 1 chart, that accepts an hour variable:
This problem lends itself so naturally to code (or chart measure expression) reuse.
How can this be achieved?
Thank you very much,
Michael