Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
nishanthi_8
Creator
Creator

Set Analysis

count({1<Month_Year=e(Month_Year),[Derived Demand Status]={'Open','Coverage External'}>}[Resource Request Id])

Here it excludes the current month. But I need to exclude the following month also and it is in the format of 'MMM-YYYY'. Suppose for example :

If  I select 'Feb-2016' it should exclude 'Feb-2016' and the following months also. How can it be achieved.

12 Replies
agni_gold
Specialist III
Specialist III

do one thing ,

Create a variable for selected period

like in same format ,

count({1<Month_Year-={$(v_Variable)},[Derived Demand Status]={'Open','Coverage External'}>}[Resource Request Id])

nishanthi_8
Creator
Creator
Author

WHATS THE DIFFERENCE?

agni_gold
Specialist III
Specialist III

please see now my post

nishanthi_8
Creator
Creator
Author

variable is not a problem it is to exclude the selected and foregoing months

agni_gold
Specialist III
Specialist III

Are you need to bypass the month selection?

Kushal_Chawda

try this

count({1<Month_Year=e({1<Month_Year={">=$(=date(max(Month_Year),'MMM-YYYY'))<=$(=date(addmonths(max(Month_Year),1),'MMM-YYYY'))"}>}Month_Year),[Derived Demand Status]={'Open','Coverage External'}>}[Resource Request Id])

nishanthi_8
Creator
Creator
Author

s

jonathandienst
Partner - Champion III
Partner - Champion III

You don't need the variable, but you do need a static value and a -= to do the exclude.

Is Month_Year a text field, or is it a numeric QV date field?

I assume that current month can be based on Today().

Something like:

count({1<Month_Year-={"$(=Date(Today(), 'MMM-yyyy'))"},[Derived Demand Status]={'Open','Coverage External'}>}[Resource Request Id])

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
nishanthi_8
Creator
Creator
Author

It worked thanks a lot... will it work without selection for example if we include the Month_Year in the dimension will the data will be populated automatically?