Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
mallireddy_qv6
Contributor II
Contributor II

load only last quarter data

Hi all,

 

I want to  load last quarter data in straight table. with these conditions.  sum(TotalSales)

Destination not in  "trek"  and 'nean"   

customerflag is equal to  "y"

 

how can I write set expression

Labels (4)
3 Replies
Taoufiq_Zarra

@mallireddy_qv6  like ?

=sum({<Destination={"*"}-{trek,nean},customerflag={'y'}>} TotalSales)
Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
MayilVahanan

Hi MalliReddy,

Try like this

Sum({<Date = {">=$(=Date(QuarterStart(Max(Date),-1),'YYYY-MM-DD'))<=$(=Date(QuarterEnd(Max(Date),-1),'YYYY-MM-DD'))"}, customerflag ={'Y'}, Destination -={'trek', 'nean'}>}TotalSales)

Replace the Date field with your fieldName.

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Brett_Bleess
Former Employee
Former Employee

@mallireddy_qv6  you have two possible solutions posted, please return to the thread and review and close the thread by using the Accept as Solution button on the post(s) that helped.  If you did something different, you can post that separately and then use the button to mark that post.  

Here are a couple of other links that may be helpful in the future:

https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344

https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/...

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.