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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
BU
Partner - Contributor III
Partner - Contributor III

Excluding Field Selection from 12-Month Rolling Sum

Hi everyone,

I have a chart that calculates a 12-month rolling SellOut using the following formula:

{<[Famiglia.Raggruppamento]={'Industriale'}>}
RangeSum(Above(Sum([#LV_DT_EC.Venduto]),0,12))

It seems to be working fine.

BU_0-1741945702608.png

NOTE: The chart is sorted using the concatenation of PROJECTS.Year & PROJECTS.Month.

However, users need to navigate through the app by selecting a field called PROJECTS.YearMonth, but I want to exclude this selection from affecting the chart.

I tried using the following formula:

{<[Famiglia.Raggruppamento]={'Industriale'}, PROJECTS.YearMonth=>}
RangeSum(Above(Sum([#LV_DT_EC.Venduto]),0,12))

The issue is that when I select PROJECTS.YearMonth, the chart changes its sorting order and bar values.

How can I ensure that selecting PROJECTS.YearMonth does not affect the sorting or values in my rolling sum calculation?

Thanks in advance for your help!

Labels (3)
1 Solution

Accepted Solutions
marcus_sommer
MVP
MVP

Ignoring selections of YearMonth have no impact to the fields Year and Month which further react to the selection state. You will probably need to include all period-fields within the set analysis - and maybe not only in the main-expression else also within the calculated dimension and/or any property-expressions, like the sorting. 

View solution in original post

1 Reply
marcus_sommer
MVP
MVP

Ignoring selections of YearMonth have no impact to the fields Year and Month which further react to the selection state. You will probably need to include all period-fields within the set analysis - and maybe not only in the main-expression else also within the calculated dimension and/or any property-expressions, like the sorting.