Filter expression
learner
Member Posts: 33
how can I set in filter
from (1-10) but not (4, 6 and 7) and (15-19) but not 17?
i tried the following:
1..10 <> 4 <>6 <>7 | 15..19 <> 17
Says..incorrect Expresion!
( I dont have a manual with me now)
from (1-10) but not (4, 6 and 7) and (15-19) but not 17?
i tried the following:
1..10 <> 4 <>6 <>7 | 15..19 <> 17
Says..incorrect Expresion!
( I dont have a manual with me now)
0
Comments
-
Thanks, but i want to use <> (not expression)
The numbers given are just example..i have a long list of the code and each code is 14 characters.
How can I sue NOT expression here?0 -
The Filtergroup-solution is the most beautiful one and probably the easiest one too.
With filtergroups you can put different filters on the same field. It is like putting an AND between the different filters.SETFILTER("The Field",'1..10|15..19'); FILTERGROUP(10); SETFILTER("The Field",'<>%1',4); FILTERGROUP(11); SETFILTER("The Field",'<>%1',6); FILTERGROUP(12); SETFILTER("The Field",'<>%1',7); FILTERGROUP(13); SETFILTER("The Field",'<>%1',17);FILTERGROUP(0);Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Belias wrote:I answered to your original question, if your purpose is to use <> operator, then you can try with this:
(i'm not 100% sure it works, you should try it)
1..10&<>4&<>6&<>7|15..19&<>17
Thanks Much it worked..kriki wrote:SETFILTER("The Field",'1..10|15..19'); FILTERGROUP(10); SETFILTER("The Field",'<>%1',4); FILTERGROUP(11); SETFILTER("The Field",'<>%1',6); FILTERGROUP(12); SETFILTER("The Field",'<>%1',7); FILTERGROUP(13); SETFILTER("The Field",'<>%1',17);FILTERGROUP(0);
How/Where do I set this when I am trying to filter one of the dimensions for Analysis by dimesion?0 -
I thought it was programmatically. I didn't think about the fact that it was for manually setting filters.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 333 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 991 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