Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Total Count

Hi

I have a set of raw data that Qlik has help me count to the final Reward for the purpose of an incentive.

TheSales aft mulitplier is using the sum<total<Agent Name..and so on.

The Reward is calculated using IF condition.

The challenge is how do i count the total Reward count by its category in another table eg, the total count of the 2 tickets winners and 1 ticket winner in a straight table.

The count I am referring to is  2 winners for 2 tickets and 3 winners for 1 ticket.

Agent nameSales$Sales$ aft multiplierReward
Agent A21766267662 tickets
Agent B19099243482 tickets
Agent C15987178741 ticket
Agent D13488169851 ticket
Agent E12854150981 ticket

Thanks,

4 Replies
jyothish8807
Master II
Master II

Hi Mabel,

Can you please share the desire output you are expecting ? That will be helpful.

Br,

KC

Best Regards,
KC
jyothish8807
Master II
Master II

Hi Mabel,

You can do this very easy if you can create the reward calculation table in script.

For eg,

Load [Agent Name],

Sales$,

sum<total<Agent Name as [Sales$ aft multiplier],

if(condition) as Reward

from <>


Then at UI simply create a straight table:


Dimension: Reward

Exp: Count (reward)

Br,

KC

Best Regards,
KC
jyothish8807
Master II
Master II

Else try to create a  calculated dimension:

Dim: aggr(Reward Claculation,Agent name)

Expresion: Count(aggr(Reward Claculation,Agent name)


Not sure if this will work.


Br,

KC

Best Regards,
KC
woshua5550
Creator III
Creator III

attach a sample app will make it easy to check

in my view,we have to know the expression of "Reward", make a little change on it and then use it as a calculated dimension