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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Maximum Date

Dear all,

i have date wise sale qty. how can i find sales qty with maximum date.

Regards,

Masba

Sale.JPG.jpg

Labels (1)
1 Solution

Accepted Solutions
morgankejerhag
Partner - Creator III
Partner - Creator III

Hello again,

Should it only have one bar? Then you can simply change chart type.

View solution in original post

10 Replies
anbu1984
Master III
Master III

=Firstsortedvalue(Qty,-Sales_date)

Not applicable
Author

In case you want in Text box , you can use set expression i.e. sum({$<Sale_Date ={$(=max(Sale_Date))} >}Qty)

morgankejerhag
Partner - Creator III
Partner - Creator III

How will you be using the value? If it is in a table with Date as a column then you could do:

if(Date=max(total Date),sum(Qty),0)

See attached example

Not applicable
Author

hey masba,

vSaleDate=max(sale_date)

=only({<sale_date={"$(vSaleDate)"}>}qty)

cheers,

kunal bhattacharjee

jagan
Partner - Champion III
Partner - Champion III

Hi,

Check this expression

sum({$<Sale_Date ={'$(=Date(Max(Sale_Date)))'} >}Qty)


Note: Sale_Date and Today() date format should be in the same format.


Regards,

Jagan.

ashfaq_haseeb
Champion III
Champion III

Try this

=sum({$<Sale_Date={'$(=max(Sale_Date))'} >}Qty)

Regards

ASHFAQ

Not applicable
Author

Dear Morgan ,

Thnx for ur reply.. your suggestion is working simple table .. but my problem is that in my chart X axis will display maximum date and Y axis will show sum(qty)..

Regards,

Masba

ashfaq_haseeb
Champion III
Champion III

You can change the chart type?

What chart type are you using?

Regards

ASHFAQ

Not applicable
Author

assign max(sales_date) to a variable then only{$ <Vsals_data>qty}