Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Analysis on a variable calculation

Hi,

I have a data table as follows:

MonthKPI_IDNumDenom
01/04/2018KPI_001730
01/05/2018KPI_0011845
01/04/2018KPI_002672
01/06/2018KPI_002954
etc...

I need to put this in a STRAIGHT table as I need to use mini charts to show a trend.

I need the KPI_ID down the side and also to put the Months across the top of the table so I need to use expressions to do this.

Some KPIs are calculated as SUM(Num)/SUM(Denom), some are just SUM(Num)...some are more complicated so I wanted to keep all of this logic within a variable (vFormula)

I was then going to put my expression as =Sum({<Month={"$(vFinYear_Apr)"}>}$(vFormula)) but I can't get it to work...any ideas?

If my variable is just Num (with no preceding 😃 then it does give the correct result for that, but anything more complex and it doesn't work.

swuehl

0 Replies