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: 
muniyandi
Creator III
Creator III

Get Max Date selling rate Using set analysis

Hi.

How to get Max Date selling rate Using set analysis.partwise ,itemwise.

I select Year or Month

Not Working:

My Expression:

ONLY({<YEAR=,Month=,SalesDate={"=((Aggr(NoDistinct Max(SalesDate),PARTYID,Item)))"}>} Rate)

My sample file attached.Pls hlep.

Regards,

Muni

5 Replies
whiteline
Master II
Master II

=ONLY({<YEAR=,Month=,SalesDate={"=SalesDate=Max(total SalesDate)"}>} Rate)

muniyandi
Creator III
Creator III
Author

Thanks for your reply.

i need partywise ,itemwise Maxdate in selling rate

this expression not working.

whiteline
Master II
Master II

Don't understand you.

Could you explain a bit more in terms of your fields and data ?

muniyandi
Creator III
Creator III
Author

Report Sales :

1. sales  items are  different rate for different party.

2. now i select year or Month, Dimentions -->PARTYID,ITEMID ,(max of date) rate

EX : PARTYID, ITEMID,DOCDATE    ,RATE

        A            , AA       ,01/APR/2012 ,80

        B            , AA       ,03/APR/2012 ,85

        A            , BB       ,10/JUN/2012 ,140

        B            , AA       ,15/JUN/2012 ,100

        A            , AA       ,18/JUN/2012 ,105

i select year=2012 only result will be need.

PARTYID,ITEMID, RATE

A             ,AA      , 105      (Based on max of docdate rate)

A             ,BB      , 85

B             ,AA      , 100

whiteline
Master II
Master II

Just remove total qualifier:

=ONLY({<YEAR=,Month=,SalesDate={"=SalesDate=Max(total SalesDate)"}>} Rate)