Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Show rows with no data in last 3 months

I have a fairly simple table with 3 columns; Market, Date and revenue.


Many of the Markets have zero revenue for certain dates.


I need to produce a table which shows a list of markets which have accumulate zero revenue in the past 3 months and one of the columns needs to display the last date there was revenue.


How can i do this?


Message was edited by: Alex Hamilton McLeod Sample data addedd

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Hi Alex,

see attachment.

Regards,

Antonio

View solution in original post

6 Replies
sunny_talwar

Would you be able to share a sample?

Not applicable
Author

added to the question

Anonymous
Not applicable
Author

Use

LOAD

Market,

Max(Date),

Sum(Revenue)

WHERE

Date>= AddMOnths(Today(),-3)

Group By Market;

If only Markets with Zero Revenue, further filter accordingly.

Not applicable
Author

The data is already used extensively elsewhere in the same document.

Is there a way I can do this 'in chart' rather than changing the load? As i still need all the other data for other parts of the doc

antoniotiman
Master III
Master III

Hi Alex,

see attachment.

Regards,

Antonio

Not applicable
Author

thanks