Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
bmensing
Contributor III
Contributor III

Range from to

Dear Community,

my data model is like

Measure table:

id        article

1         hat

2         dog

3         cat

4         lorry

5         car

6         skirt

7         jeans

8         belt

9         bird

10       Lion

fact table:

id min          id max       describtion

1                   1               clothing

6                   8               clothing

2                   3               animals

9                  10              animals

4                   5               others

i Need to connect These two tables and the difficult one is the id 7 which is not listed in my fact table, but Need to be connected as well... any ideas?

*EDIT* one more Information, that is very important --> the relation between the tables is 1 to n, like one id in the measure table can

be for example clothing and animals...

Labels (1)
5 Replies
YoussefBelloum
Champion
Champion

Hi,

what is the key between these two tables ?

fvelascog72
Partner - Specialist
Partner - Specialist

Hi,

You can try with:

IntervalMatch

Saludos.

antoniotiman
Master III
Master III

May be this

LOAD * Inline [
id, article
1, hat
2, dog
3, cat
4, lorry
5, car
6, skirt
7, jeans
8, belt
9, bird
10, Lion]
;

facttable:
LOAD * Inline [
id min, id max, describtion
1, 1, clothing
6, 8, clothing
2, 3, animals
9, 10, animals
4, 5, others]
;

IntervalMatch (id) LOAD [id min],[id max] Resident
facttable;

bmensing
Contributor III
Contributor III
Author

that Looks good to me, but unfortunately i missed that there is an 1 to n relation like

the id 1 could also be clothing and others...

MK9885
Master II
Master II

id 1 doesn't seem to have any relation to others in your data. It is just linked to clothing.