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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
pepe2209
Creator
Creator

overlapping dimension in table?

I would like to create a table that has the following dimensions:

Companyperiod
1last 3 months (month 08-14 to 06-14)
1last 6 months (month 08-14 to 03-14)
1last 12 months (month 08-14 to 09-13)
2last 3 months (month 08-14 to 06-14)
2last 6 months (month 08-14 to 03-14)
2last 12 months (month 08-14 to 09-13)

So dimension one is just company and in the second dimension i would like show the results for the last 3, 6 and 12 months of that company. So there is an overlap of months. I tried to use a dimension with distinct months (last 3, from  4 to 6, from  7 to 12) and then use accumulation or the "above" function in expressions, but I don't know what's most efficient.

your help would be much appreciated

regards,

Peter

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Perhaps with expressions like this:

sum({<[MyDate]={'>$(=addmonths(monthend(today()),-3))'}>}Amount)

sum({<[MyDate]={'>$(=addmonths(monthend(today()),-6))'}>}Amount)

sum({<[MyDate]={'>$(=addmonths(monthend(today()),-12))'}>}Amount)


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Perhaps with expressions like this:

sum({<[MyDate]={'>$(=addmonths(monthend(today()),-3))'}>}Amount)

sum({<[MyDate]={'>$(=addmonths(monthend(today()),-6))'}>}Amount)

sum({<[MyDate]={'>$(=addmonths(monthend(today()),-12))'}>}Amount)


talk is cheap, supply exceeds demand