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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis using Field Value

I am very new to QV and set analysis.  I am trying to do a calculation based on a field value.  The statement I currently have

Avg({<[Issue Date]={'<=10/27/14'},[Exchg]={N}>}[Amount])  works with a hard coded date (10/27/14).  What I want to do is replace the date with a field (MyField) from my table that has a moving date.  In summary, I need to perform this calculation when Issue Date <= MyFieldValue

Anyone know how I can achieve this?

Thanks in advance.

12 Replies
Not applicable
Author

Hi L R.

Thank you for the attached file.

Look at my reply, your calculation is performed in two steps. This makes it less complex.

Step1 - differs records using conditional Type

04-11-2014 09-11-54.jpg

Step2 - insert distinct Type in your set analysis:

Prior Calculation: Avg({<Type={'Prior'},[Issued in Exchange]={N}>}[Total Doc Amount])

Post Calculation: Avg({<Type={'Post'},[Issued in Exchange]={N}>}[Total Doc Amount])

This is a great way to perform conditional and f calculations.

I hope that will help you!

Not applicable
Author

Here's the example

Not applicable
Author

Hello Carlo,

Thank you so much.  That's exactly what I needed.