I am trying to do a simple BAQ on AP Invoices and a post date; at least I would have thought this was simple
The Post Date is only in the GLJrnDtl and since it has a Debit and Credit entry it is giving me both. I have tired various ways to narrow it down.
This is what I have now and it shows both lines for each group. I do have the Query options set to Distinct
Put a table criteria on GLJrnDtl to only select records where CreditAmount <>0. That should eleiminate all the Debit records, leaving you “half” of each GL tran
select distinct
[APInvHed].[InvoiceDate] as [APInvHed_InvoiceDate],
[APInvHed].[GroupID] as [APInvHed_GroupID],
[APInvHed].[InvoiceNum] as [APInvHed_InvoiceNum],
[Vendor].[VendorID] as [Vendor_VendorID],
[Vendor].[Name] as [Vendor_Name],
[APInvHed].[DocInvoiceAmt] as [APInvHed_DocInvoiceAmt],
[GLJrnDtl].[PostedDate] as [GLJrnDtl_PostedDate]
from Erp.APInvHed as APInvHed
inner join Erp.Vendor as Vendor on
APInvHed.Company = Vendor.Company
and APInvHed.VendorNum = Vendor.VendorNum
inner join Erp.GLJrnDtl as GLJrnDtl on
GLJrnDtl.Company = APInvHed.Company
and GLJrnDtl.APInvoiceNum = APInvHed.InvoiceNum
and ( GLJrnDtl.CreditAmount <> 0 )
BAQ works like a charm but my dashboard is not working…I deleted my Tracker View and tested it open…it ran fine. Once I add a filter on Invoice date is chokes and returns nothing. ODD…
To have both you need two separate fields. In the BAQ, make a calc field that is just a copy of the date filed. The in the Dashboard, filter on each. One being >= and the other being <=
Not sure I follow but when I customize tracker view it is just like a customization. I select the EpiDate from the tool box and then make the Tracker Query control true and select the query and then set the dashboard conditions
Double check the original control that the Tracker creates with the one you add for the other end of the range. Should almost be identical with one having “LessThanOrEqualTo” and the other “GreaterThanOrEqualTo”.
Make sure you don’t have these two backwards. As in
InvoiceDate <= 3/1/2019 AND InvoiceDate >= 3/15/2019
Sorry guys…I must of had something wrong and just didn’t see it. I just created the tracker view and it is filtering properly. Thanks for the 2nd eyes.