Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
sneha2907
Contributor
Contributor

check whether is coming for latest 3 years or not?

Hi All, 

 

I have a line chart in which measures are source_value and Target_value,Dimension is year/month.

Now in my data quality check i wants to verify whether data is coming for latest 3 years or not.

1 Reply
asinha1991
Creator III
Creator III

can you elaborate more?

if(year>=max({1}Total year)-3,'Yes','No')

or sum(if(year>=max({1}Total year)-3,TargetValue))

might help you