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

Announcements
Mastering Change Data Capture: Read Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Previous Fiscal Year data does not show up when i select date from calendar

Hi all,

Wonder if you can help me.

I have a chart that calculates my sales of previous year using expression

Sum({$<Year_Fiscal_Order = {'$(=max(Year_Fiscal_Order)-1)'}>}[Sales Amount])

When i make a date selection from my calendar ([Invoice Date]) no values are showing for  previous year.

Can someone help please?

 

ProductCurrent YearPrevious Year
Milk2000
Bread1300
Tea600
Coffee800
Butter300
Water9000
Fish200
Meat160
LOC20

In my calendar load, I have created a separate table and left joined where it auto numbered all my fiscal year in ascending order and i left joined that to the main calendar. It works perfectly fine just that when i select dates, then it goes off.

Regards,

15 Replies
Not applicable
Author

Hi Sunny,

Please see the attached spread sheet.

The first table shows values when i select year 2015 and Jul Aug Sept and compares them with previous year of 2014.

On the table below is a default comparison of of what the table would do. This compares Current Fiscal year with Previous Fiscal year.

I am expecting to see this in one expression. Is that possible?

Regards,

Sarb

sunny_talwar

Where did Product dimension came in from? The attached sample has no product dimension. Can you provide an update sample or an expected output based on the sample you have already provided?

Not applicable
Author

Sunny,

Now attached.

I thought i had attached the product dimension app in there.

Regards,

sunny_talwar

I still don't see the Product dimension in the attached application

Not applicable
Author

Hi Sunny,

Ok that's because the app name is same and on qlik community it just gets overridden by the old one.

Now attached with a different name.

Regards,

Sarb

sunny_talwar

Here you go...

Expression

Sum({$<InvoiceDate = {"$(='>=' & Date(AddYears(Min(InvoiceDate), -1), 'DD/MM/YYYY') & '<=' & Date(YearEnd(Max(InvoiceDate), -1, 5), 'DD/MM/YYYY'))"}, $(=Concat({<$Table = {CALENDAR}, $Field -= {InvoiceDate, Month}>}'[' & $Field & ']', ', '))>}[Amount])

When 2015 & Jul, Aug, Sept is selected

Capture.PNG

When 2016-17 is selected

Capture.PNG