Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Current Fiscal Year Current Quarter vs Previous Fiscal Year Same Quarter

Hi All,

I need Current Fiscal Year Current Quarter vs  Previous FiscalYear Same Quarter. Can any one help me or send me a sample application.

Any help would be appreciated.

Regards

Deepak

4 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi Deepak,

If you have a date field then try like this

Current Quarter:

=Sum({<DateFieldName={'>=$(=QuarterStart(Max(DateFieldName)))<=$(=Max(DateFieldName))'}>} Sales)

Previous year Current Quarter:

=Sum({<DateFieldName={'>=$(=QuarterStart(Max(DateFieldName), -4))<=$(=QuarterEnd(Max(DateFieldName), -4))'}>} Sales)

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Hi Jagan,

Thanks for Reply,it working for Current Year but in  Case of Previous Year Same Quarter it showing the same Value as the Current Year Quarter.

Regards

Deepak

Sokkorn
Master
Master

Hi Deepak,

Maybe here, here and here can help you to figure out.

Regards,

Sokkorn

jagan
Luminary Alumni
Luminary Alumni

Hi,

Exclude the date filters in the dashboard within the expression as below

Current Quarter:

=Sum({<YearFieldName=, MonthFieldName=, QuarterFieldName=, WeekFieldName=, DateFieldName={'>=$(=QuarterStart(Max(DateFieldName)))<=$(=Max(DateFieldName))'}>} Sales)

Previous year Current Quarter:

=Sum({<YearFieldName=, MonthFieldName=, QuarterFieldName=, WeekFieldName=,DateFieldName={'>=$(=QuarterStart(Max(DateFieldName), -4))<=$(=QuarterEnd(Max(DateFieldName), -4))'}>} Sales)

Hope this will the issue.

Regards,

Jagan.