Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
G_B
Contributor
Contributor

Previous Month using Set Analysis

Hi all,

Have been through countless similar topics, but can't seem to get this simple expression working.

Dimensions in the example are Month, Area, Colour. I have these in a straight table, and want to display two measures: Average Score and Average Score (previous month). Attempted expressions for the second measure are:

avg({$<[Month]={"$(=Date(AddMonths(Max(Month),-1),'DD/MM/YYYY'))"}>} Score)

and

avg({$<[Month]={"$(=Date(AddMonths(Max(Month),-1)))"}>} TOTAL <Area,Colour> Score)

Expected result is:

G_B_1-1591388289773.png

 

 

Have attached a .qvf with the example.

Thanks in advance

0 Replies