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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
peterderrington
Creator II
Creator II

Calculated Dimension?

I'm trying to create a line graph in QlikView to compare data across two years.

I have a dimension (DOA_Month) and an expression (AVG([Total LOS]) which shows me the length of stay across the months however this shows a combination of two years worth of data across the same months.

I can add a list box to pick a specific year (DOA-Year) but ideally i'd like to show both years (2016 and 2017 from the DOA-Year dimension) on the same graph.

I'm sure its easy to do but my brains just not working this morning.

Would i do this with a 'calculated dimension' or somewhere as an expression?

Many thanks in advance.

Labels (1)
11 Replies
Anonymous
Not applicable

Try AVG({<DOA-Year={'2016'}>}[Total LOS])

peterderrington
Creator II
Creator II
Author

Brilliant!

Thank you. Its all showing exactly as i needed it.

Many thanks.