I have been working on an Inventory by product group report for a specific date in Visual Studio / SSRS. The report works fine when I test using a small subset of items (via a filter in the design). However when I run for all items, it tkaes hours and crashes due to a memmory error. I’m sure it is related to calculating each items inventory through the item ledger entries going back to 2004 and am wondering if there is a way I can accelerate this somehow.
Here is the code from Visual studio if needed but I’m not a programer so I wiould be limited and need a good explanation of what I need to do
SELECT [Saris Cycling Group, Inc_$Item].No_, [Saris Cycling Group, Inc_$Item].Description, [Saris Cycling Group, Inc_$Item].[Standard Cost],
[Saris Cycling Group, Inc_$Item].[Global Dimension 2 Code], [Saris Cycling Group, Inc_$Item].[Product Group Code], [Saris Cycling Group, Inc_$Item].[Sales Class],
[Saris Cycling Group, Inc_$Item].[Product Class], [Saris Cycling Group, Inc_$Item Ledger Entry].[Posting Date], [Saris Cycling Group, Inc_$Item Ledger Entry].Quantity,
[Saris Cycling Group, Inc_$Item Ledger Entry].[Entry Type], [Saris Cycling Group, Inc_$Item Ledger Entry].[Source Type],
[Saris Cycling Group, Inc_$Item Ledger Entry].[Document Type]
FROM [Saris Cycling Group, Inc_$Item] INNER JOIN
[Saris Cycling Group, Inc_$Item Ledger Entry] ON [Saris Cycling Group, Inc_$Item].No_ = [Saris Cycling Group, Inc_$Item Ledger Entry].[Item No_]
WHERE ([Saris Cycling Group, Inc_$Item Ledger Entry].[Posting Date] <= @invdate)
ORDER BY [Saris Cycling Group, Inc_$Item].[Global Dimension 2 Code], [Saris Cycling Group, Inc_$Item].No_
Kevin