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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Issue with comparative expressions...

Hi there,

If I use this expression: Sum (if (InYear ([DATE], Today(), 0), [SALES]))

against: Sum (if (InYear ([DATE], Today(), -1), [SALES]))

returns the comparison in a bar chart of the selected month in the current year against the same month last year...the issue arises when the month in the last year has no record of data. Then, the program assigns the same value for both months although, last year's value should appear as zero.

Does anyone know a way to overcome this?

Thanks in advance

1 Reply
disqr_rm
Partner - Specialist III
Partner - Specialist III

Can you post your qvw here? May be with reduced data.