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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
evansabres
Specialist
Specialist

Different Time Ranges

I have sales data for several 'seasons'

There is a [Transaction Date] for each ticket sold.

What I want to do is have a time range of 0 - 100% to compare ticket sales across various seasons.

Is this possible?

3 Replies
swuehl
MVP
MVP

Something like

LOAD

     (TransactionDate - SeasonStartDate) / (SeasonEndDate - SeasonStartDate) as Percentage,

     ...

??

evansabres
Specialist
Specialist
Author

Stefan -

Thank you. Question here would be that each season has a different start and end date, how would I account for that?

swuehl
MVP
MVP

Map your Transaction dates to the season date ranges.

For example, using IntervalMatch LOAD prefix or a mapping approach.

IntervalMatch

Don't join - use Applymap instead