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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Using MonthName with Set Analysis

Hi, my problem is:

I select a field PeriodEstimate with value Nov 2009.
I've a text with: MONTHNAME(PeriodEstimate-1) and the value is Oct 2009.

Then, I try to use it in a set analysis:

If I write:
=AVG({$< PeriodEstimate ={'Oct 2009'}>} [Result]) works fine.

But, If I write:
=AVG({$< PeriodEstimate ={'MONTHNAME(PeriodEstimate-1)'}>} [Result]) the result is null.

Can you help me? Thanks!!!

1 Solution

Accepted Solutions
Not applicable
Author

I think you need a dollar sign expansion for the Monthname expression:

=AVG({$< PeriodEstimate =
{'$(=MONTHNAME(PeriodEstimate-1))'}>} [Result])


View solution in original post

2 Replies
Not applicable
Author

I think you need a dollar sign expansion for the Monthname expression:

=AVG({$< PeriodEstimate =
{'$(=MONTHNAME(PeriodEstimate-1))'}>} [Result])


Not applicable
Author

Thanks ninja NMiller!