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: 
Not applicable

Date generating problem

Hi bro,

I have a downtime and uptime dates now i want generate dates between them in a date format. If field1 is less than filed2 i need to display all the dates in between them. I'm attaching the attachment of input data and output. Please help me......

Labels (1)
4 Replies
sunny_talwar
MVP
MVP

I think you need IntervalMatch functionality. Look here: IntervalMatch

HTH

Best,

Sunny

jagan
Partner - Champion III
Partner - Champion III

Hi,

You can using while like below

LOAD

ID,

Field1,

Field2,

TimeStamp(Floor(Field1 + IterNo() -1)) AS NewFieldName

FROM DataSource

WHILE (Field1 + IterNo() - 1) <= Field2;

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

HI sunny/Jagan

Thanks ur replies both queries are working fine......

sunny_talwar
MVP
MVP

Awesome

Glad we were able to help. Please close the thread by marking Correct and Helpful answers (if any)

Best,

Sunny