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: 
Purushothaman
Partner - Creator III
Partner - Creator III

Month Year - Maximum Sales

Hi Experts,

Attached is the QVF. My Requirement is to get Each Month Year's Maximum Sales. 

Below is my output:

Purushothaman_0-1673791617078.png

 

But What I required is to get:

Purushothaman_1-1673791704182.png

Anyone, Please help!!!

Many Thanks!!

 

 

 

1 Solution

Accepted Solutions
ogster1974
Partner - Master II
Partner - Master II

You were just formatting your date to look like Month Year rather than creating a month year field.

Something like this

Raw1:
Load *,
//Date(Date,'MMM-YY') as MonthYear,
Month(Date) & '-'& Year(Date) as MonthYear,
Month(Date) as Month

Resident Raw;
Drop Table Raw;

Will give you what you want.

 

View solution in original post

3 Replies
BrunPierre
Partner - Master
Partner - Master

Hi

You can do max on sales ​​and then aggregate by MonthYear.

=Aggr(Max(Sales),MonthYear)

ogster1974
Partner - Master II
Partner - Master II

You were just formatting your date to look like Month Year rather than creating a month year field.

Something like this

Raw1:
Load *,
//Date(Date,'MMM-YY') as MonthYear,
Month(Date) & '-'& Year(Date) as MonthYear,
Month(Date) as Month

Resident Raw;
Drop Table Raw;

Will give you what you want.

 

Purushothaman
Partner - Creator III
Partner - Creator III
Author

@ogster1974  Your solution is working. Thanks for your great help!! Much Appreciated.