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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
bruno_m_santos
Partner - Creator
Partner - Creator

ratio in rolling 12 seta nalysis

Hi all,

I need to  make a ratio in a rolling12 seta nalysis between first value of the range (newer) and the last one (older)

Any idea to do that?

Many Thanks for your help

Bruno

Sum

({Real*$(vMeasure)* $<MonthID =  {">=$(=Max(MonthID) - 11)<=$(=Max(MonthID))"},
Date = {
"<=$(=Max(Date))"},
Year =,
Quarter = ,
Period = ,
[Period (#)] = ,
Month =
>}QTD)/

Above(

Sum

({Real*

$(vMeasure)* $<MonthID =  {">=$(=Max(MonthID) - 11)<=$(=Max(MonthID))"},
Date = {
"<=$(=Max(Date))"},
Year = ,
Quarter = ,
Period = ,
[Period (#)] = ,
Month =
>}QTD))

Labels (1)
1 Reply
bruno_m_santos
Partner - Creator
Partner - Creator
Author

I found solution.

This is the best way?

Thanks

Bruno

=Sum
({Real*$(vMeasure)* $<MonthID =  {">=$(=Max(MonthID) - 11)<=$(=Max(MonthID))"},
Date = {
"<=$(=Max(Date))"},
Year =,
Quarter = ,
Period = ,
[Period (#)] = ,
Month =
>}QTD)/

/Sum({Real*$(vMeasure)* $<MonthID =  {"$(=min({Real*$(vMeasure)* $<MonthID =  {">=$(=Max(MonthID) - 11)<=$(=Max(MonthID))"},
Date = ,
Year =,
Quarter = ,
Period = ,
[Period (#)] = ,
Month =
>}MonthID))"
},
Date = {
"<=$(=Max(Date))"},
Year =,
Quarter = ,
Period = ,
[Period (#)] = ,
Month =
>}QTD)