In RMS Store Operations 2.0 I copied the top selling items report and changed the table sequence to use the item table as my first table with a left join on the transactionentry table (see attached report). The idea was that if there is no transactionentry record the item record would still show on the report. But this is not the case and i am trying to figure out where my report is wrong.
I don't use a date filter (ultimately I want to), assuming that if no transactionentry record exists the transaction date would be NULL.
Running the report only shows items with a transactionentry records. I verified that with various SQL statements and some items that are active in the items table are not on the report.
Further I would like to group the items by using the first 7 characters of the item.itemlookup code. I think i figured that out by using Formula "substring(Item.ItemLookupCode,1,7)". It seems to work but I would want to be sure that it also works with the non-selling items.
And last, because I group by the first 7 character of the itemlookup code I would want to trim the last 4 characters of the item.description field. Because the description can have different number of characters I can't use a fixed length. I tried different formulas, like Formula "substring(Item.ItemLookupCode,1,datalength((item.description) -4))" and different variations of it but I always end up getting syntax errors.
I would appreciate if somebody could check my report and point me into the right directions.
Thanks