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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Month restriction based on Bucket selection

Hi All,

   I am having 2 fields (Fore Cast Month,Bucket). Here I need to show the month & For Cast Values in the chart based on selections of Fore Cast & Bucket

For Ex  If I select "Jan 2017"  in Fore Cast Month and "3+Months" in the Bucket I need to show the values starting from Jan 2017 to Mar 2017. Same way if I select May 2017 and 6+ Months the chart should show the Fore Cast values from May 2017 to Oct 2017.

Please let me know if there is query

-Jai

8 Replies
Anonymous
Not applicable
Author

++ Atatchment

tyagishaila
Specialist
Specialist

yes you can do it by using addmonths()

=If(Bucket='3+Months', Date(Addmonths(MonthStart(Date(Date#([Fore Cast Month],'MMM YYYY')) ),3),'MMM YYYY'))

Anonymous
Not applicable
Author

Hi Shaila,

I am not getting the expected result. Could you help me on this?

-Jai

Anonymous
Not applicable
Author

Hi All,

Any idea on the above?

- Jai

tyagishaila
Specialist
Specialist

Share qvw sample.

Anonymous
Not applicable
Author

++ QVW

ElizaF
Creator II
Creator II

Hi,

See another solution in attach file. I used Set Analysis function and I thing it cover your request.

Another solution is to use AsOfTable Concept.

I do not recommend the above function because it is consuming resources in the UI.

Frank_Hartmann
Master II
Master II

See attached file.

hope this helps