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: 
kdmarkee
Specialist
Specialist

QlikView set analysis help

I'm hoping what I wish to achieve is possible.  It is two fold, per the image I'm attaching.   Basically, we are trying to (a) predict when we'll receive first payments in the door based on when we have received first payments in the last 6 months and (b) calculate how much we actually received by that predicted date, if anything.  Columns A through F are easily pulled from  the data model.  Each row in my data model will have a Release Date and may or may not have a First Payment Date depending of course if we received any payments  yet.  When I have both dates populated, I can then calculate that row's number days (the lag) between them, which is critical to achieve my results in the attached image.

(1)  Problem 1 is Column G (Avg Days) (in pink) - This seems to only populate when there is at least one row in my underlying data model with a First Payment Date populated, even though I want to get an avg of all data rows in the last 6 months from the row's Release Date.  For row 3, which hasn't received any payments yet, I don't quite understand why I cannot get the info from the previous 6 months to get my Avg # of Days for this column.  

I have this set analysis in place for column G:

Avg(TOTAL<Group, Payor, Plan, [Release Date]>{$<[Release Date]={'>=$(=AddMonths([Release Date], -6>)) <=$(=[Release Date])'}>}LagDays_RelToFirstPaymt)

(2) Problem 2 is Column I (Actual Collections) (in yellow)- How can I use the date generated in column H in my set analysis for this column?  I tried to use the expression column name from column H in my set analysis but it is not working (maybe that is not allowed in a set analysis statement??).

Thanks!

pred cash flow.GIF

Labels (1)
2 Replies
sunny_talwar

It might be easier to help if we can take a look at a sample app.

Brett_Bleess
Former Employee
Former Employee

About the best I can offer are the following links that may be of some help:

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/...

If you want to search Design Blog area yourself, you can use the following link:

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

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.