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: 
Aditya_Chitale
Specialist
Specialist

Set Analysis on Aggr()

Hi All,

I want to show previous 12 months variance in a line chart based on max month selected by user (if month= May 2020, line chart should show data from May 2019 to May 2020). The variance I want to show in line chart is based on region level. So I have aggregated it on region ).

Expression I used:

Sum(Aggr((Sum({<PPV_Date={">=$(=Date(addmonths(max(PPV_Date),-12),'DD-MM-YYYY'))<=$(=Date(max(PPV_Date),'DD-MM-YYYY'))"},[PPV Fiscal Month]=>}([PPV Variance due to currency YTD])*[Exchange Rate])) ,[PPV Purchase Region]))

even after using this expression, it is showing variance only for the selected month.

Kindly suggest a solution for the problem.

 

Regards,

Aditya

Labels (3)
1 Reply
JustinDallas
Specialist III
Specialist III

Is there a way we can get some dummy data to work with?  It also helps to have a small table of what results you are expecting to get.