Value Is Filter

rohit44x
Member Posts: 10
Problem:
In G/L Account table there is a Balance field..which is a flow field..
It's Calc formula is:
Sum("G/L Entry".Amount WHERE (G/L Account No.=FIELD(No.),G/L Account No.=FIELD(FILTER(Totaling)),Business Unit Code=FIELD(Business Unit Filter),Global Dimension 1 Code=FIELD(Global Dimension 1 Filter),Global Dimension 2 Code=FIELD(Global Dimension 2 Filter)))
It takes Amount field of G/L entry table ,,,,
Here on 2nd row G/L Account No. Field is compared to Totaling and ValueIsFilter is set to TRUE...
One thing is clear that by setting ValueIsFilter to TRUE is that it takes all values from range for eg..1100..1200
but how it compare to G/L Account No. is unclear... :roll:
If you have any idea please do explain...
In G/L Account table there is a Balance field..which is a flow field..
It's Calc formula is:
Sum("G/L Entry".Amount WHERE (G/L Account No.=FIELD(No.),G/L Account No.=FIELD(FILTER(Totaling)),Business Unit Code=FIELD(Business Unit Filter),Global Dimension 1 Code=FIELD(Global Dimension 1 Filter),Global Dimension 2 Code=FIELD(Global Dimension 2 Filter)))
It takes Amount field of G/L entry table ,,,,
Here on 2nd row G/L Account No. Field is compared to Totaling and ValueIsFilter is set to TRUE...
One thing is clear that by setting ValueIsFilter to TRUE is that it takes all values from range for eg..1100..1200
but how it compare to G/L Account No. is unclear... :roll:
If you have any idea please do explain...
0
Comments
-
[Topic moved from 'NAV Tips & Tricks' forum to 'NAV/Navision Classic Client' forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
G/L Account No.=FIELD(FILTER(Totaling)) means take field Totaling and use it as filter on "G/L Account No.". Value in totaling could be something like "10000..200000".0
-
@kine...
that is k... but my problem is following:
G/L Account balance field--->Properties-->Calc Formula-->Table Filter (line no.2)
Field Type Value OnlyMaxLimit ValueIsFilter
G/L Account No. FIELD Totaling No Yes
Let us take account number 1110(Cronus) it has Totaling = ''
So,how Balance is calculated for it...why the above mentioned 2nd condition dosen't return FALSE??0 -
Ok, more details>
There are two filters on same field in the formula:
G/L Account No.=FIELD(No.) and G/L Account No.=FIELD(FILTER(Totaling))
Because the filters are applied in same filter group, the second filter will override the first filter, but only if it is not empty.
Result:
If "Totaling" is empty, the entries are filtered for same account no. as actual record. If Totaling have some value, it will be used as the filter and the first filter will be overwritten by this... ;-) Nice trick, isn't it?0 -
@kine..
thnx for the solution... \:D/
Actually i was taking it different way....i was taking it like this..
G/L Account No.=FIELD(No.)
AND
G/L Account No.=FIELD(FILTER(Totaling))
-->
'1100'='1100' (OUTPUT:TRUE)
AND
'1100'='' (because totalling is empty) (OUTPUT:FALSE)
-->
TRUE
AND
FALSE
-->
FALSE( so...there will be nor record selected from G/L entry)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