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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
bhaveshp90
Creator III
Creator III

How to detach in Set analysis

Hello, 

I have an expression below to calculate the delay days as shown below; (I want to permanently lock this table so I have used {1} in my expression.)

1.PNG

 = if(Sum(Final_Acceptance)>3500, null(),

(Sum({1<Snapshot_Date = {">=$(=Date(Addmonths(Max({1} Snapshot_Date),0), 'YYYY-MM-DD'))"}>}Final_Acceptance)
/
(count({1<Snapshot_Date = {">=$(=Date(Addmonths(Max({1} Snapshot_Date),-1), 'YYYY-MM-DD'))"}>}distinct Milestone_Project_Number))))

This expression is working irrespective of year selected, but when I unselect month the table is changing. 

Any idea how to fix this? 

PS: Year(Date) as Year and Month(Date) as Month 

 

thanks

Bhavesh

Labels (2)
11 Replies
sunny_talwar

Just combined the set analysis from your other two expressions (set analysis on sanpshot_date) and added it to the if clause expression.

bhaveshp90
Creator III
Creator III
Author

Awesome Smiley Happy thank you sir