Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
adamdavi3s
Master
Master

Pick match- A challange for someone who fancies it!

I'm baffled by this.

For reasons I won't go into, We have an island dimension, which has the same values as some column names in the fact table.

The simple reason being the dataset is 65,000,000 rows and having this dimension as an additional column would potentially increase this by 20 times!!

Therefore under the advice of qliktech we created the island dimension, and renamed the amount columns with the same values.

Consider this as a basic example:

Island Table:

cost_type
BLOOD
DRUGS
WARDS AND NURSING
IMPLANTS

Fact Table:

Header 1Header 2Header 3Header 4Header 5
HRGBLOODDRUGSWARDS AND NURSINGIMPLANTS
a100204023
b2001050456

We did have this set up with a huge IF statement but the performance was appalling so on some very good advice here we used a pick match formula.

This works brilliantly... except when we built in a new variable divisor into the table when it all went a bit wrong.

The only way I've seen to calculate the right value is to use an aggr formula... this works fine for the first line within the pick / match but then fails??

The attached probably makes more sense.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

2 Replies
swuehl
MVP
MVP

Maybe like this?

adamdavi3s
Master
Master
Author

GAH!

So simple, I am such a pleb at times!!