Exclusion filtering on multiple fields - Report

raven44
Member Posts: 85
Hi,
Scenario:
Type field
Sub-type field
3 Value fields
Grouping by Type and Sub-Type to obtain totals.
You want to filter out where the 3 Values are all 0 (including removing the group header sections).
Is there where you could utilise FILTERGROUPS? or how would filter this scenario?
I know you can use FILTERGROUPS to have multiple filters on 1 field: http://www.mibuso.com/forum/viewtopic.p ... iltergroup
Thanks
Scenario:
Type field
Sub-type field
3 Value fields
Grouping by Type and Sub-Type to obtain totals.
You want to filter out where the 3 Values are all 0 (including removing the group header sections).
Is there where you could utilise FILTERGROUPS? or how would filter this scenario?
I know you can use FILTERGROUPS to have multiple filters on 1 field: http://www.mibuso.com/forum/viewtopic.p ... iltergroup
Thanks
0
Comments
-
Just put a filter the 3 fields.
The filtergroups you use when you have multiple filters on the SAME field. Or (for forms) when you DON'T want that the user can remove the filters you put programmatically .Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
hi,
thanks for your reply, its just that applying a filter on the 3 value fields seperately could exclude certain records that have a value in 1 of the fields.
eg.
field 1 = 0
field 2 = 1
field 3 = 0
apart from creating a temp record and then reporting on the temp record, im wondering if there is a certain filtering method (similar to FILTERGROUP) that could be applied on the record.0 -
You can always program it, but that might not be very good for performance. In the OnAfterGetRecord trigger of your dataitem:
IF ((MyRec.Field1 = 0) AND (MyRec.Field2 = 0) AND (MyRec.Field3 = 0)) THEN CurrReport.SKIP;
0 -
Hi,
I did follow a similar route to that suggestion (which for now is fine) but as you say, might not be good for performance...especially later on when theres more entries in the table.
I was really just hoping that there was some function which I didnt know about that could've performed this type of request.
Thanks for all your answers!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions