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

how to use interval match()

hi experts....

I have a bellow two tables

Capture2.JPGCapture1.JPG

I want to create bar chart showing count of live properties at each date

Any help would be much appreciated!  

14 Replies
Chanty4u
MVP
MVP

HirisH_V7
Master
Master

Hi,

Look into this,

help using a 'BETWEEN' join on tables from different datasources

IntervalMatch

-Hirish

HirisH
“Aspire to Inspire before we Expire!”
MK_QSL
MVP
MVP

I don't think so you need intervalmatch for above two table which you have shown.. You can simply load them with/without join in qlikview and still able to associated them using ID field.

HirisH_V7
Master
Master

Hi,

If you want to see the difference between the Days means,

Load Your Tables,

Data:

LOAD * INLINE [

    Property ID, Properties

    1, A

    2, B

    3, C

    4, D

];

LOAD * INLINE [

    Property ID, LiveStart, LiveEnd

    1, 01/12/2015, 04/12/2015

    2, 01/12/2015, 05/12/2015

    3, 01/12/2015, 06/12/2015

    4, 02/12/2015, 23/12/2015

];

Then at front end ,

NetWorkDays(LiveStart,LiveEnd)

In this you can include holidays too like this,

NetWorkDays(LiveStart,LiveEnd,'03/12/2015')

Days Interval Difference(Network Days -Holidays) -216392.PNG

Check this,

NetWorkDays

HTH,

PFA,

Hirish

HirisH
“Aspire to Inspire before we Expire!”
Not applicable
Author

here is the coding for ur question try ith this@@@@

PropertyDetails:

LOAD

ID as [Property ID] ,

    Replace(purgechar(PROPERTIES,'0123456789'),' ','') as PROPERTIES

FROM

(biff, embedded labels, table is [Property$]);

join

LOAD [Property ID],

     

     date([Live Start]) as [Live Start],

     if(IsNull([Live End]),date(today()),[Live End]) as [Live End]

    

FROM

(biff, embedded labels, table is [Status$]);

join

data:

LOAD

[Property ID],

Date([Live Start] +IterNo()-1) as Date,

RowNo() as rownumber

Resident PropertyDetails

while([Live Start]+IterNo()-1<=[Live End]);

Not applicable
Author

Hi,

Please refer to this link :

Interval Match Feature/Function

Regards,

Snehal Nabar

Not applicable
Author

thank you for your reply

Not applicable
Author

Thanks for all your reply guys ..I don't  need  to join that two tables I just want to count a total property for the each date by using intervalmatch function I tried like below

qur.JPG

but it will shows error. so please suggest me how could I over come this error??

err.JPG

Kushal_Chawda

Data:

LOAD PropertyId,

            StartDate,

            EndDate,

           Date( StartDate + iterno()-1 ) as Date

From Table

While StartDate+iterno()-1<= EndDate;

Create the straight table

Dimension:

Date

Expression:

Count( distinct PropertyId)