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: 
Not applicable

Issue with Y/Y in chart

Hi,

Currently my chart looks like below because 2016 has data for all the 53 weeks but 2017 only has data for 10 weeks. So I want to get rid of weeks greater than 10 in 2016.

My dimension is Week Of year

And my measures are:

Max Year = sum({<Year={'$(=Max(Year))'}>}Amt)

Max year -1 = sum({<Year={'$(=Max(Year)-1)'} , DATE={'<=$(=AddYears(max(DATE), -1))'} >}Amt)

Am I missing something?


Labels (1)
2 Replies
vishsaggi
Champion III
Champion III

Can you share a sample app to work on. ?May be try like: I am not sure have not tried

Max year -1 = sum({<Year={'$(=Max(Year)-1)'} , DATE={'<=$(=AddYears(max(DATE), -1))',

                 [Week of Year] = {'$(= [Week Of Year] < 11)'} } >}Amt)

Anil_Babu_Samineni

As provide seems ok to me. But, You are talking about Week might you missed Week on your query

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful