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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
helen_pip
Creator III
Creator III

Dimension to be restricted

Dear Qlikview user

I have a date field called MonthYear which currently has data from Apr-14-Sep-16

I was wondering what would be the most efficient way of restricting the dimension on the X axis of my graph to only show data from

Apr-15 - Sep 16?

Could anyone point me in the right direction?

Kind Regards

Helen

Labels (1)
3 Replies
miguelbraga
Partner - Specialist III
Partner - Specialist III

Hey there,

The most efficient way is by inserting a WHERE clause where you define from your start date in this case 01/04/2016 and the end date is 30/09/2016 if your date is in the following format 'DD/MM/YYYY'. Other way arround this is to apply a set analysis like this:

{<OrderDate= {">=$(=min(StartDate))<=$(=max(EndDate))"}> }

Best regards,

Data Architect MB

Clever_Anjos
Support
Support

Change your expression using Set Analysis

SUM({<MonthYear ={">=Apr-15 <=Sep 16"}>}Value) 

Please use exactly the same number format used into MonthYear

sinanozdemir
Specialist III
Specialist III

Hi,

Have you tried set analysis?

Sum({<Your_Dimension={">=$(=Date(MakeDate(2015, 4, 1), 'MMM-YY'))<=$(=Date(MakeDate(2016, 9, 1), 'MMM-YY'))"}>} Your_Measure)