grouping the Posting date in the G/L entry table

Omar
Member Posts: 4
Hi guys,
can any one help me,
i have a report consist of two data items,Customer and G/L entry with DataItemLink: Source No.=FIELD(No.)
i am trying to group the posting date in the G/L entry, i have the GroupTotalFields:Posting Date and the DataItemTableView:SORTING(Source No.,G/L Account No.,Document Type,Posting Date) ORDER(Ascending), i always get the data grouped by the Source No instead of the posting date ](*,)
i want my data to be grouped by the Posting date,
please help
can any one help me,
i have a report consist of two data items,Customer and G/L entry with DataItemLink: Source No.=FIELD(No.)
i am trying to group the posting date in the G/L entry, i have the GroupTotalFields:Posting Date and the DataItemTableView:SORTING(Source No.,G/L Account No.,Document Type,Posting Date) ORDER(Ascending), i always get the data grouped by the Source No instead of the posting date ](*,)
i want my data to be grouped by the Posting date,
please help
0
Comments
-
How can you expect to get it grouped by Posting Date if you use this key for the sorting: Source No.,G/L Account No.,Document Type,Posting Date?0
-
Hi Luc,
thanks for your reply,
i cant see anything wrong in this key, though it contains the Posting date as part of it, please advise about the sorting to use in order to get the data grouped as desired,
thanks in advance,0 -
Omar wrote:I always get the data grouped by the Source No instead of the posting date0
-
Hi Omar,
According to me as well, you are correct, there is nothing wrong with the key as it contains the Posting date as part of it.
Please check with the sections you have created for that report.
GroupHeader section needs to be added for PostingDate (add the caption of PostingDate on Header section of G/L Entry and value on the GroupHeader section of G/L entry)
Hope this works for you.
Thanks
Vivek0 -
Omar wrote:Hi Luc,
thanks for your reply,
i cant see anything wrong in this key, though it contains the Posting date as part of it, please advise about the sorting to use in order to get the data grouped as desired,
thanks in advance,
Luc is correct. If you want to group by something, you must use sorting key BEGINNING with same fields as you want to group by (and in same order)! That it ends with the field is not enough. Back to school guys... ;-)0 -
Hi Vivek,
thanks for your paricipation,
i did like you advised but still the same,
i must inform you that i also have a grouping over the Customer group Dimension field in the Customer data item, am putting my data fileds in the G/L entry GroupFooter, so my sections are like this: Customer Groupheader containing the Customer Group Dimension which is the sector in my report and beneath it there is the G/L entry GroupFooter section which contains the Posting Date and Amount form the G/L entry
thanks0 -
Hi Omar,
If your grouping is over "Customer group Dimension" field then, I would say that in the "DataItemTableView" Property select a key which contains the field "Customer group Dimension", if there is no key which contains that field than in that case, you have to create the one in Customer table.
And I think your DataItem structure is like : first Customer DataItem which is indented by G/L Entry right?
Thanks
Vivek0 -
Omar wrote:Hi Vivek,
thanks for your paricipation,
i did like you advised but still the same,
i must inform you that i also have a grouping over the Customer group Dimension field in the Customer data item, am putting my data fileds in the G/L entry GroupFooter, so my sections are like this: Customer Groupheader containing the Customer Group Dimension which is the sector in my report and beneath it there is the G/L entry GroupFooter section which contains the Posting Date and Amount form the G/L entry
thanks
have you read the things me and Luc wrote? It will be still same, if your Order By key is not Beginning with the fields you are grouping on...0 -
Luc and Kine are correct.
However, in addition to this you also need to restructure your report. Because you have Customer as the main dataitem and G/L Entry as an indented (linked) dataitem, your report will always be sorted by customer before any sort key specified on the G/L Entry table. Basically what you need to do is...
1) Make G/L entry the main dataitem
2) If you need to get info from the Customer table (eg customer name) then create a customer var and get the correct customer record in the OnAfterGetRecord trigger - use this customer var on the report
3) The key on G/L Entry needs to start with Posting Date0 -
So your report looks lile this:
Data Items
Customer - , Sort by No., Group Total "Customer Group"
G/L Entry - Filter Source Type = Customer, Source No. -> Customer.No., Group Total "Posting Date"
In this case you need a key Source Type, Source No., Posting Date on G/L Entry.
If you don't have a key on G/L Entry which starts with Source Type, Source No., Posting Date and you don't want to create such a key as it decreases posting performance you could use a Temporary table instead:
per Customer read the G/L entries but don't print them. Instead write them to a temp buffer table thereby grouping the data manually. Add another Data Item after G/L Entry to print it.Frank Dickschat
FD Consulting0
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