Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
radokotbk
Contributor
Contributor

Select a value from a 2-Dimension Table

Hi

I have a table like this for rates:

Sales/Transactions0-100101-250
0-15002,5%2,65%
1501-30002,6%2,76%
3001-45002,7%2,9%

So i load info for Sales and Transactions from a lot of stores, and i need to show something like this:

StoreSalesTransactionsRate
Store 1786802,5%
Store 232502152,9%

Im trying to figure out how to do this. I change the format of the first table to a 4 column table (SalesMin, SalesMax, TransactionsMin,TransactionsMax,Rate) but i cant make it so far.

Thanks for your help and sorry my english.

1 Reply
hic
Former Employee
Former Employee

Thera are several ways to do this. I have a suggested solution with a double intervalmatch, where you need to to match the sales of a store to the relevant range, then the transaction number to the relevant range, and finally make a composite key of the two intervalmatches. Attached you will find the script in a text file.

Good luck!

/HIC