13.07.2015 Views

Using the DeepSee Dashboard Designer - InterSystems ...

Using the DeepSee Dashboard Designer - InterSystems ...

Using the DeepSee Dashboard Designer - InterSystems ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Expressions and Scripts in <strong>the</strong> <strong>Dashboard</strong> <strong>Designer</strong>[Region Name = {$CASE(%session.Data("CurrRole"),"role1":"North Region","role2":"South Region","role3":"West Region",:"East Region") }]A.2 Function CallsIn a couple of places, you can use a function call. Specifically, you can write a Caché ObjectScriptexpression of <strong>the</strong> following form:$$functionname(arg1,arg2,...)The function name must start with $$You can use function calls in labels, button captions, and speedometer captions.<strong>DeepSee</strong> provides a couple of convenient functions:• $$KPI — Refers to <strong>the</strong> value of a KPI. You can use this in labels and button captions.• $$VAR — Refers to <strong>the</strong> value of a variable set within <strong>the</strong> same dashboard. You can use this inlabels, button captions, and speedometer captions.A.2.1 $$KPI FunctionTo refer to <strong>the</strong> value of a KPI, use <strong>the</strong> $$KPI function:$$KPI(kpiid,filterexpr)This function takes <strong>the</strong> following arguments:kpiidfilterexprID of ano<strong>the</strong>r KPI, as shown in KPI List and elsewhere in <strong>DeepSee</strong>.(Optional) Quoted filter expression.You cannot use this function in speedometer captions.For example, <strong>the</strong> following expression returns <strong>the</strong> value of KPI 10005 divided by KPI 10001:$$KPI(10005)/$$KPI(10001)Suppose that KPI 10005 is based on <strong>the</strong> Freight measure and KPI 10001 is based on count. Theprevious expression <strong>the</strong>n returns <strong>the</strong> average freight cost per order, for <strong>the</strong> entire subject area.Consider <strong>the</strong> following variation:$$KPI(10005,"[Ship Country = USA]")/$$KPI(10001,"[Ship Country = USA]")112 <strong>Using</strong> <strong>the</strong> <strong>DeepSee</strong> <strong>Dashboard</strong> <strong>Designer</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!