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: 
mohammadkhatimi
Partner - Specialist
Partner - Specialist

How to show last Yr and last month...in set analysis

Hi Everyone,

How to show last Fiscal Month of Last Fiscal year.

For e.g- Fiscal year-2015-2016 Apr Month is selected....the data should show March of Fiscal Year 2014-15.

Any help would highly appreciate.......................

Regards,

Mohammad

18 Replies
buzzy996
Master II
Master II

try this,

=num(sum({$<Year = {$(=only(Year) - 1)}, Month = {"<=$(=max(Month-1))"}>} LineSalesAmount), '$#,##0;($#,##0)')

sunilkumarqv
Specialist II
Specialist II

Hi Mohammand

Last Fisc Year  And last Month

Sum({<Year=, Month=, Quarter=, Week=, DateField=,Year={$(=Max(Year)-1)}, DateNum={">=$(=Num(MonthStart(Max(DateNum))))<=$(=Max(DateNum))"}>} Sales)

mohammadkhatimi
Partner - Specialist
Partner - Specialist
Author

Not working...

mohammadkhatimi
Partner - Specialist
Partner - Specialist
Author

In dat app i didnt get solution..

sunilkumarqv
Specialist II
Specialist II

Can u share app ?

mohammadkhatimi
Partner - Specialist
Partner - Specialist
Author

My year field is in Fiscal Year format....

Please read my post...I have given the e.g what exactly i want.

Regards,

Mohammad

buzzy996
Master II
Master II

hi,r u tried this?

mohammadkhatimi
Partner - Specialist
Partner - Specialist
Author

Yess...

Couldnt solve my issue...

Have you understand my requirement???

buzzy996
Master II
Master II

yes dear,hopes tht will works..

the expression I shared will provides

if u select 2015 mar the above will provide 2014 feb ytd results

if u select 2015 may the above will provide 2014 apr ytd results