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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
clondono
Creator III
Creator III

Actual vs Forecast negative values

Hello,

I have a chart to show Actual vs Forecast amounts (see attached sample).  The issue I am having is that the forecast data is showing negative values for future months when in reality it should not contain any negative values for future months.  We have a flag for current forecast (IS_CURRENT_FORECAST), all values flagged 'Y' should be future months (in this case March-June 2016 because data for March has not been consolidated yet).

1.png

Dimension Year/Month: 

=Date(FISCAL_MONTH_YEAR, 'YYYY-MMM')

Expressions:

Forecast:

round(sum(FORECAST_AMOUNT), 1000)/1000 

Actual:

round(sum(ACTUAL_AMOUNT), 1000)/1000 

Thanks for your help!

1 Solution

Accepted Solutions
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi Carlos,

the data clearly shows a huge negative amount for June. It's marked as not current. Maybe you need to add a Set Analysis filter and only select "current" forecast? Something like this:

round(sum({<IS_CURRENT_FORECAST = {'Y'}>} FORECAST_AMOUNT), 1000)/1000

See attached solution.

cheers,

Oleg Troyansky

Check out my new book QlikView Your Business - The Expert Guide for QlikView and Qlik Sense

View solution in original post

4 Replies
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi Carlos,

the data clearly shows a huge negative amount for June. It's marked as not current. Maybe you need to add a Set Analysis filter and only select "current" forecast? Something like this:

round(sum({<IS_CURRENT_FORECAST = {'Y'}>} FORECAST_AMOUNT), 1000)/1000

See attached solution.

cheers,

Oleg Troyansky

Check out my new book QlikView Your Business - The Expert Guide for QlikView and Qlik Sense

clondono
Creator III
Creator III
Author

Yes Oleg, set analysis did the trick!

Awesome, thanks for your help!

Carlos

clondono
Creator III
Creator III
Author

Definitely I will be getting your book. Is it available on Packt Publisher or just Amazon?

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi Carlos,

It's published by Wiley, so it wouldn't be available from Packt, but other than that - any common book store has it in a variety of formats.

enjoy!

Oleg Troyansky