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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
niranjan_capgemnini
Contributor
Contributor

How to display max month sales

Hi experts,

  I struck in one place , my requirement is chart has to be display max month sales that some time current month sales is zero then it has to be displayed previous month sales.

if the previous month and current month sales is zero  then it has to be displayed last to last month sales like that it has to be show.

 

please guide me how to do this .

below formula i am using 

if((sum({<Year = {'$(=max(Year))'},[Month]={'$(=max([Month]))'},Status={'F'}>}Stock))=0,

sum({$<Year = {'$(=max(Year))'},Status={'F'}>}Stock),

sum({$<Year = {'$(=max(Year))'},[Month]={'$(=max([Month]))'},Status={'F'}>}Stock)

)

 

thanks in advanced 

Labels (1)
11 Replies
vikasmahajan

Please check if you require same.

 

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
niranjan_capgemnini
Contributor
Contributor
Author

Hi,
Please give any suggestion.
thanks in advance..........