Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
rash_611
Partner - Contributor III
Partner - Contributor III

Automating the expression

Hi Team,

I have an excel as below. Instead of writing expression in each textbox or in chart i want to use this excel and automate the expression.

Kindly help me.

KPIExpression
LoggedCOUNT(DISTINCT {$<Process={'XYZ'}>} ID)
ClosedCOUNT(DISTINCT {$<Status={'Closed'}, Process={'XYZ'}>} ID)

Regards,

GR

6 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Please provide more detail on what you mean by 'automating' the expression?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

Do you mean you want to load the expression from the spreadsheet?

T_Expressions:

LOAD KPI,

     Expression

FROM Expressions.xlsx (...)

For i = 0 To NoOfRows('T_Expressions')

     Let zkpi = Peek('KPI', i, 'T_Expressions');

     Let zexpr = Peek('Expression', i, 'T_Expressions');

     Set $(zkpi) = zexpr;

Next

Now use the created variables as expressions:

     =$(Logged)

     =$(Closed)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
rash_611
Partner - Contributor III
Partner - Contributor III
Author

i have 5 text box and 4 chart to show the logged value and 3 text box and 6 charts to show closed values. Instead of writing the expression in all the charts & textbox. i want to automate this. is this possible

rash_611
Partner - Contributor III
Partner - Contributor III
Author

how to call this in the textbox

jonathandienst
Partner - Champion III
Partner - Champion III

>>how to call this in the textbox

Now use the created variables as expressions:

     =$(Logged)

     =$(Closed)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable

Hi,

I have implemented a simple example having some values for process and status.Its working for me. But depends on the complexity of your requirement.

Please find the attached QVW.