Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
abhaysingh
Specialist II
Specialist II

LOGIC Required


i want to see my PROJECTED SALES for current Month ONLY when I select back Month or Years it should give me NOT APPLICABLE

Projected sales calculated as SUM(SALES)

kindly help

5 Replies
Anonymous
Not applicable

sum({$month=()sales})

i hope it works if not let me know

PrashantSangle

Hi,

Just write.

It will give you only current Month Sales

Sum({<Datefield={">=MonthStart(Today())"}>}Sales)

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
abhaysingh
Specialist II
Specialist II
Author

Not working

abhaysingh
Specialist II
Specialist II
Author

this is my run Rate logic=

(NUM(sum([Prd. Value]) / vCrore  if(GetFieldSelections(FMonth)=month(today())
and GetFieldSelections (YEAR) ='14-15' , Day(date(today()) ), ((count(Days)))),'#.##') )

and I want it to run it for current month and year only when I will select back month it should give me NOT APPLICABLE

er_mohit
Master II
Master II

Try this

Sum( {<  Date={'>=$(=MonthStart(Max(Date), 0))<=$(=MonthEnd(Max(Date), 0))'}  >} PROJECTEDSALES)

Make sure your Date format is same

or Try this

Sum( {<Year={'=$(=Max(Year)),Month={'=$(Max(Month))} >} PROJECTEDSALES)