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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
stubarnes
Contributor II
Contributor II

Calculate year on year movement only if current year exists

I'm trying to build a rate report that shows monetary changes year on year but only where a dimension exists in the current year

My data looks like this

ACCYearGWP
AAA20171000
AAA20181100
BBB20171000
CCC20171000
CCC20181100

So in Year 2017 GWP is 3000 and Year 2018, GWP is 2200 but I only want to show 2000 in Year 2017 as BBB does not exist in 2018

I am getting stuck at excluding BBB!

1 Reply
YoussefBelloum
Champion
Champion

Hi,

try this:

=Sum( {<ACC = {"=Count(DISTINCT {1} Year) = 2"}>} GWP)