Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
rupaliqlik
Creator
Creator

how to show last records from data.

Hi All,

  I have march month data for date 1 to 15,but  till 10 we have data and 11 to 15 we don't have records, only date 's are coming.So basically I have to show only last day records which came on 10th march.How to retrive sales for last records  in set analysis expression.

 

Thanks,

Rupali Ethape

Labels (1)
6 Replies
Shubham_Deshmukh
Specialist
Specialist

Try this : 

=MaxString({<dates={"=$(=max(dates))"},sale -={''}>}sale)

// -= (dash equal) is used for not equal

amrinder
Creator
Creator

You can do it in two ways either restrict data from 11 Mar in script only. Another way is to add flag in script and in front end create variable based on max date and Flag created and then pass that variable in set expression on date basis. 

-amrinder

rupaliqlik
Creator
Creator
Author

Hi,

 

But It is giving correct value in textbox, not in chart.I want to display it in chart level

sunny_talwar

May be this

Sum({<Date = {"$(=Max({<Sales = {[*]}>}Date))"}>}Sales)
rupaliqlik
Creator
Creator
Author

Hi,

 

But It is giving correct value in text box, not in chart.I want to display it in chart level

rupaliqlik
Creator
Creator
Author

Thanks Sunny,It's working.