Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression to show 7 days forward - forecasting

Howdy. Trying to display the rolling 7 days (future) of data to show up and coming work to be realized. How would I write and expression to dynamically show future 7 days based off my established 'Target Date of Completion'

=Count ({<Status={'New', 'In Progress'}, [Target Completion Date]={"<=$(=DATE(MAX(DATE)))>=$(=DATE(MAX(DATE)+7))"} , Account -={'Sage Atlanta CBC'}, Type = {'Trial', 'Pre-production'}, [Account Sales Office] = {'Atlanta CBC'}>}[Success Plan: ID])

1 Solution

Accepted Solutions
sunny_talwar

Can you check this expression:

=Count ({<Status={'New', 'In Progress'}, [Target Completion Date]={"$(='>=' & Date(Today()) & '<=' & Date(Today()+7))"} ,Account -={'Sage Atlanta CBC'}, Type = {'Trial', 'Pre-production'}, [Account Sales Office] = {'Atlanta CBC'}>}[Success Plan: ID])


Capture.PNG

View solution in original post

9 Replies
sunny_talwar

The date set analysis looks good to me, it isn't working?

Not applicable
Author

Hi Sunny, it’s not working. No matter what I set the days to (e.g. +10, +20, etc…) I’m getting zero as a return when I have upcoming work to realize.

sunny_talwar

Would you be able to share a sample to look at?

Not applicable
Author

On the 'Copy of Copy of Activity' tab.

The number should be 4.. Over the next 7 days, I have 4 accounts converting based on the 'Target Completion Date'

sunny_talwar

Can you check this expression:

=Count ({<Status={'New', 'In Progress'}, [Target Completion Date]={"$(='>=' & Date(Today()) & '<=' & Date(Today()+7))"} ,Account -={'Sage Atlanta CBC'}, Type = {'Trial', 'Pre-production'}, [Account Sales Office] = {'Atlanta CBC'}>}[Success Plan: ID])


Capture.PNG

Not applicable
Author

very strange...I copied your code, and still get 0 returned results. . Still troubleshooting

sunny_talwar

Did you open the QVW and check if you see the right number?

Anonymous
Not applicable
Author

i have emp_id, date, HOURS field! but i want to show hours of per empid in per date! how to do? if i group by the emp_id means it will show the all the data, but i want to single date?

Heena
Contributor III
Contributor III

Hi ,

 I have data as below.

RN_EXECUTION_DATEcount(RN_RUN_ID)
2018-06-3018
2018-07-0124
2018-07-0255
2018-07-03101
2018-07-0479
2018-07-0593
2018-07-0683
2018-07-072
2018-07-084
2018-07-095
2018-07-1020
2018-07-118
2018-07-1211
2018-07-1315
2018-07-15176

 

I need to forecast for next 5 days - count(RN_RUN_ID), i have added days though in the script.

Date(RN_EXECUTION_DATE + 5) as RN_EXECUTION_DATE_Forecast.

but its not working.

measure: count(RN_RUN_ID).

 

Thanks in Advance!