on 2014 Jul 17 11:54 AM
Hi All,
I have a report and data like this
Brand : a
Category:C1
time sales
6 455
7 434
8 767
Brand : a
Category:C2
time sales
6 0
7 0
8 0
Brand : b
Category:C1
time sales
6 45
7 43
8 76
Like sales I have many numeric figues. I want to suppress categories data if all measure values are 0 only.If any one is non 0 I have to show that category values with all times.
As per attachment I want to hide these 2 categories
Request clarification before answering.
Hi Divya,
You can even directly filter these records through record selection by giving following formula :
{firld1}+{firld2}+{firld3}+{firld4} <> 0
This will sum up your fields and check if it is zero or not. If zero it will not display else will display that record.
-Sastry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Divya,
This filter will Not be passed back to the database! Meaning, it will get all the records first and then filter locally.
If you want the filter to be passed back to the database, then you have two choices:
1) If you're reporting against a Table/View, create a SQL Expression Field with this logic:
"Field1" + "Field2" + "Field3"
Then, add a Record Selection Formula with this code:
{%SQL Expression} <> 0
2) If you're reporting against a Command Object or Stored Proc, include this logic in the where clause of the query.
-Abhilash
If you do this filter at the query level, it will take out rows where all numeric fields on it are zero.
If you're trying to do this at the query level, then you would also need to group at the query level and get rid of 'groups' where the summary of all numeric fields in a group is zero.
-Abhilash
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 7 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.