Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Forecasting and Filters

Hello, everyone.

Im making a simple month forecast table. It fills the days yet to come with an average of the days with actual data.

If i dont make any filtering it works just fine. But if i filter, for example, payments with money or credit cards the forecast data wont be displayed.

If i put the filter in se analysis it works fine too. But i dont want to add all payments types in set analysis. Because i also want to sue this expression in a line graph.

Can anyone tell me why this is happening?

Thanks in advance!

1 Solution

Accepted Solutions
sunny_talwar

May be try this:

If(Sum({1}TOTAL) <> 0, Sum(TOTAL), Avg({<TOTAL = {'>0'} TOTAL Aggr(Sum(TOTAL), DIA)))

View solution in original post

4 Replies
sunny_talwar

May be try this:

If(Sum({1}TOTAL) <> 0, Sum(TOTAL), Avg({<TOTAL = {'>0'} TOTAL Aggr(Sum(TOTAL), DIA)))

Not applicable
Author

I tried it, but it fills all rows with the average.

sunny_talwar

All the rows? Really? Can you show me a sample where it does?

Not applicable
Author

Oops, you were right. Thanks!

I got confused because it lost the capability to filter by month and year and i was looking at 2015 august.

Its working, thank you very much and sorry for the confusion! Altough it still doesnt work for pivot tables.

But now i can at least make it work for line charts!