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: 
FULO1251
Contributor
Contributor

Latest Month Rate Compare to Previous Month

Hi QlikView Users,

I am a newbie to QlikView and am looking for some help with my dashboard in order to compare latest month product rate with previous month product rate. I am also having issue with getting the master calendar working.

I would also like to add indicators to compare both so that if there is an increase from last month then I get red arrow up, if decrease a green arrow down.

I have attached my data. I would really appreciate any help this forum can offer.

 

3 Replies
Saravanan_Desingh

Are you looking something like this?

tab1:
LOAD [Shop Name], 
     Date(MonthStart(Floor([Purchase Date]))) As [Purchase Date], 
     [Product Name], 
     Product.IsValid
FROM
[C:\Users\sarav\Downloads\Data.xlsx]
(ooxml, embedded labels, table is Data);

tab2:
LOAD [Month-Year] As [Purchase Date], 
     [Total Sales]
FROM
[C:\Users\sarav\Downloads\KPI.xlsx]
(ooxml, embedded labels, table is Sheet1);

PuDate:
LOAD DISTINCT [Purchase Date]
Resident tab1;

Concatenate(PuDate)
LOAD DISTINCT [Purchase Date]
Resident tab2;

Cal:
NoConcatenate
LOAD AddMonths(MinDate,IterNo()-1) As [Purchase Date]
While AddMonths(MinDate,IterNo()-1)<=MaxDate
;
LOAD Date(Min([Purchase Date])) As MinDate,
	 Date(Max([Purchase Date])) As MaxDate
Resident PuDate;

Left Join(Cal)
LOAD DISTINCT [Product Name]
Resident tab1;

Concatenate(tab1)
LOAD * Resident Cal;

Drop Table PuDate, Cal;
Saravanan_Desingh

Dimensions: Product Name, Purchase Date

Expressions

Month Sales: Count(Product.IsValid) 
Diff: [Month Sales]-Above([Month Sales])

commQV91.PNG

 

Brett_Bleess
Former Employee
Former Employee

If Saran's posts helped you with what you needed, we would appreciate it if you would close the thread by using the Accept as Solution button on the post(s) that helped.  If you require further assistance, please leave an update post.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.