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

Interval match

Good morning,

i'm using this code to categorize the customer's sales into range of values.

I would like to create a store of this table.

How can i do it?

 

[BASE2021A]:                                         --> sales
LOAD
COD_Customer,
COD_Ag,
VAL_VEN1
FROM [lib:/BASE2021A.QVD]
(qvd);

[pip]:                                                             --> range
LOAD
range,
LIM_MIN ,
LIM_MAX ,
AutoNumberHash128(LIM_MIN,LIM_MAX) AS CLASSID
FROM [lib:///TABELLARANGE2.QVD](qvd);

[LINKFASCE]:                                           --> union interval match
IntervalMatch(VAL_VEN1)
Load LIM_MIN,LIM_MAX
Resident pip;
Left Join (BASE2021A)
Load (VAL_VEN1),
DUAL (LIM_MIN&'-'&LIM_MAX,LIM_MIN) AS RANGEACQUISTI,
AutoNumberHash128(LIM_MIN,LIM_MAX) AS CLASSID
Resident LINKFASCE;
drop table LINKFASCE;

Labels (3)
1 Solution

Accepted Solutions
rubenmarin

Hi, if you are doing joins to the BASE2021A table, you only need to do the store of that table to have all data.

STORE BASE2021A into [$(vPathToQvd)BASE2021A.qvd] (qvd);

View solution in original post

1 Reply
rubenmarin

Hi, if you are doing joins to the BASE2021A table, you only need to do the store of that table to have all data.

STORE BASE2021A into [$(vPathToQvd)BASE2021A.qvd] (qvd);