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

Calculated Dimension with Threshold Variables

Hi Everyone!

I want to be able to indicate the effect of different factors on certain KPIs in a dashboard where the user has the option to select a factor (from a drop down linked to a variable) and set thresholds for classifying this as 'High', 'Medium' and 'Low', showing the average for weekly KPI value for High, Med and Low weeks.

The variables I have are:

$(vHigh) - above which classifies as a High week [linked to input box]

$(vLow) - below which classifies as a Low week [linked to input box]

          (in between these two thresholds is a medium week)

$(vFactor) - selected from drop down

Data is at a weekly granularity. Something resembling:

LOAD * Inline [Week, KPI, Factor

          1, 0.7, 17

          2, 0.9, 18

          3, 1.1, 14];

I figured I need to use a calculated dimension to classify each week as either high, medium or low based on the variables and then average the metric score for the week.

Can anyone help me with this?

Much appreciated.

CS

12 Replies
Not applicable
Author

Thanks, that's helpful.

In terms of how it affects the calculation - it would be the Factor, not the KPI encased in the aggr(avg( part of the calculated dimension.

Nicole-Smith

Ah, okay.  Do you have everything you need then?

Not applicable
Author

Yes, thanks