Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Interval match()

Hi All

      What are the places we use IntervalMatch()......give some example...

9 Replies
tresesco
MVP
MVP

Check this blog post: IntervalMatch

Anonymous
Not applicable
Author

Hi,

when ever we have a slowly changing dimensions in our data.in that scenarios we can use interval match function

slowly changing dimension(SCD)-means.,

If a.dimension value changes with respect to the time is called slowly changing dimension.

like Salary date.

hemanthaanichet
Creator III
Creator III

Anonymous
Not applicable
Author

hi,

also fallow this example,

Interval Match Feature/Function

rido1421
Creator III
Creator III

Hi Karuppasamy

If you have a look at the two Tables below

You will see Salesman John was in the team tigers from 2016/01/01 to 2016/05/01

He then moved to team lions from 2016/05/02 to 2016/12/02

When you load this data in without doing an interval match and linking by only the SalesManID you will get an incorrect sales value for the teams as John was in two different teams within 2016.

I have put up a model with two tabs showing how loading the data normally and loading it with interval match will affect the sales value by team.

SalesMan:  

SalesManIDSalesManSalesTeamFrom_DateTo_Date
1JohnTigers2016/01/012016/05/01
2PaulLions2016/01/012016/12/02
3PeterSharks2016/01/012016/12/02
4IvanSharks2016/01/012016/12/02
5RalphCheetahs2016/01/012016/12/02
1JohnLions2016/05/022016/12/02

Sales: 

DateSalesAmountSalesManID
2016/03/0125801
2016/04/0585642
2016/06/06391
2016/03/0940591
2016/07/0892493
2016/09/0763324
2016/06/0675985
2016/10/1179071
2016/02/0339764
Not applicable
Author

Thank you Hendricks

Not applicable
Author

Thank you Henricks now only I got knowledge in Intreavelmatch)() thanks a lot

kkkumar82
Specialist III
Specialist III

One more example on  HR data

Beginners Task Series - Task3(Interval Match)

rido1421
Creator III
Creator III

Would you mind marking your most helpful answer as correct so as to close the item 🙂