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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

help in expression

got a pivot table with Month as Dimension

my expression is simple sum(Sales)

however for each month I want to display a value representing the sales for previous month

Message was edited by: Ali Hijazi

I can walk on water when it freezes
11 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Then create an AsOf table with those values. The concept will be the same. Good luck.


talk is cheap, supply exceeds demand
MarcoWedel

Hi,

one solution could be:

QlikCommunity_Thread_141836_Pic3.JPG.jpg

QlikCommunity_Thread_141836_Pic5.JPG.jpg

tabSales:

LOAD *

FROM [http://community.qlik.com/servlet/JiveServlet/download/654995-137136/13MonthsTrend.xlsx] (ooxml, embedded labels, table is Sheet1);

tabCalendar:

LOAD *,

    Day(Date) as Day,

    WeekDay(Date) as WeekDay,

    Week(Date) as Week,

    WeekName(Date) as WeekName,

    Month(Date) as Month,

    MonthName(Date) as MonthName,

    Ceil(Month(Date)/3) as Quarter,

    QuarterName(Date) as QuarterName,

    Year(Date) as Year,

    WeekYear(Date) as WeekYear;  

LOAD Date(MakeDate(2009)+IterNo()-1) as Date

AutoGenerate 1

While MakeDate(2009)+IterNo()-1<=Today();

QlikCommunity_Thread_141836_Pic1.JPG.jpg

hope this helps

regards

Marco