I have a chart and I need to identify the lower Incentive value for each %ADAcctKey.
The Incentive value is a calculated value. In the example below 445 would flag 10% and for 2544 the lowest flagged would be 0%.
|2544||Save Rate||26.09%||Stretch||22% >=||20%|
Thank you for you help.
Solved! Go to Solution.
That's the first thing I tried but I get blanks for all values. I am wondering if it's because of the Incentive column and how or when it's calculated.
With the below formula populating the Incentive column, would the values exist at the run time of the formula Aggr(Min(Incentive), %ADAcctKey)
Maybe like this
, %ADAcctKey, MetricDesc)
Ok, could you describe how your data model is built, and which dimensions and expressions you're using in the chart.
It would be very helpful if you could upload a small sample QVW that demonstrates your data and chart.
It's working but doing something very wrong.
So I have changed my model and it is now allowing me to calculate using the above formula but it's giving an odd result.
I am using the formula Aggr(Min(Achieved), %ADAcctKey) To Identify the Achieved Level by the agent.
Notice the Minimum Score to the right which shows that value of 0 as the lowest achieved and this is correct. It is just on the incorrect line. When I create a second chart to provide a list of agents lowest achieved level with only that row I now get incorrect rows.
The consistent part is that the value is placed on the first portion of our load script as seen below. Notice how the first Metric loaded below in the Resident load is QA. All the lowest values in the chart are displaying there. When I moved QA to the bottom of the script, all scores then showed in the row for Adherence, the new first loaded.
/***[ Initial load where each agents score for all categories is in a single row]***/
[Customer Care Incentive Extract.xls]
(biff, embedded labels, table is Sheet1$);
/***[ Each metric is then split out into a single column and later joined to the KPI range]***/
RoleID & 2 as VariableKey,
QA as IncentiveScore,
'QA' as IncentiveCategory
RoleID & 2 as VariableKey,
Adherence as IncentiveScore,
'Adherence' as IncentiveCategory
have you tried using no distinct?
Aggr( nodistinct Min(Achieved), %ADAcctKey)
also why not use min(total <%ADAcctKey > Min(Achieved)) ? this tends to give you the same results that by using aggr but has better performance
Thank you for the help.
The formula Aggr( nodistinct Min(Achieved), %ADAcctKey) places the lowest value in all rows for the agent which will work but does not allow us to only display the single row.
With the formula min(total <%ADAcctKey > Min(Achieved)) I get all null values. I am curious as to the need for the '<>' around <%ADAcctKey >.