cancel
Showing results for 
Search instead for 
Did you mean: 

Webi 4.1 - Filter on Count Value.

Former Member
0 Kudos

Hi Folks, Super Novice here.

I have a report in webi which I would like to add a filter. I Only want to show the product that has a forecast count greater than 4.

When I filter on count = greater than 4, all the data on the table goes away.

I tried the following as my count variable definition: And I got the same result

***Forecast in the table = Totalsalesforecast*****

=Count([Totalsalesforecast];All) In([Shop];[Product])

=Count([Totalsalesforecast]) In([Shop];[Product])

=Count([Totalsalesforecast])


Can Someone please help?.

SHOPProductDescriptionkey Figure2/1/20162/2/20162/3/20162/4/20162/5/20162/6/20162/7/20162/8/20162/9/2016Count
SHOP A111111item aForecast289894218
SHOP A111111item aActual
SHOP A222222Item BForecast122
SHOP A222222item BActual
SHOP A333333Item CForecast21
SHOP A333333Item CActual
SHOP A444444Iitem DForecast142
SHOP A444444Item DActual
SHOP A555555item eForecast11
SHOP A555555item eActual
SHOP A666666item fForecast11
SHOP A666666item fActual
SHOP A777777item gForecast11
SHOP A777777item gActual
SHOP A222222item hForecast11
SHOP A222222item hActual
SHOP A333333item iForecast1444421119
SHOP A333333item iActual

Accepted Solutions (1)

Accepted Solutions (1)

amitrathi239
Active Contributor
0 Kudos

Hi,

try this.

Var=If(sum(Count([Totalsalesforecast] In([Shop];[Product];[Date]))>4)) then "Show" else "Hide"


Filter on Var where equal to Show.


Amit

Former Member
0 Kudos

Thanks alot Amit for the quick reply, im getting an error with the command you provided:

"The Expression or Sub-expression at position 4 in the 'if' function uses an invalid data type. (IES 10037)"

im not too sure what that means. Thanks again.

Ademola

amitrathi239
Active Contributor
0 Kudos

Hi,

Check this.

Var=If(sum(Count([Totalsalesforecast]) In([Shop];[Product];[Date]))>4) then "Show" else "Hide"


Amit

Former Member
0 Kudos

Thanks again Amit. the end result is still the same everything disappears when I set this variable  to "Show", however when i set it to "Hide" the whole table shows up.

I tried using this variable in the value cell and it all populated "Hide".

Thanks

Former Member
0 Kudos

seems as though the Sum function is not working and the filter is being applied to the binary values.

amitrathi239
Active Contributor
0 Kudos

Hi,

Add below formula in the total column.

Var Total=Count([Key Figure]) In ([Product];[ Description];[Shop])

After that apply filter on Var Total where grater then equal to 4.

Amit

Former Member
0 Kudos

Key Figure and Description are not objects of the report, they are just text i Keyed in as a header for the column

If I substitute these with the objects they represent, then Ill end up with this:

=Count([Totalsalesforecast]) In([Product];[Product descr];[Shop])  When I filter Total to = greater  than 4. nothing changes.

Former Member
0 Kudos

Oh my God! I had it all along. I had some filters set at the wrong level. thanks your command worked. Thanks.

Answers (0)