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

Matching Information

Dear All

I have problems matching planning data with actual data.

The actual data are on the account level like this:

MonthPremiumAccount
150A
125B
275C
210D
3100E
440F
475G

The plan data are organised like

MonthPlan Premium
175
275
375
475

I want now to compare plan and actuals on a quarterly level. I would have matched the data with month and summed up the plan premium with distinct in order to avoid double counting (which would occur for example in month 1).

However, I have now the plan for several countries. Their monthly plan premium can be the same. If country A and country B have the same plan, sum(distinct [Plan Premium]) would only get the plan premium once for a month or a quarter.

Is there a more straight forward way to match data like the above?

Many, many thanks.

Best regards,

Jan

1 Solution

Accepted Solutions
sunny_talwar

May be try this

Sum(Aggr(Sum(DISTINCT [Plan Premium]), Month, Country))

View solution in original post

2 Replies
Anonymous
Not applicable

Hi,

I think you can create a Composite key on Month and Country and autonumber this.

So something like autonumber(Month &'_'&<Country>). You would have to have this key in both table.

how to create composite key

sunny_talwar

May be try this

Sum(Aggr(Sum(DISTINCT [Plan Premium]), Month, Country))