我有一个使用 SQL 查询的 SRSS 报告,该查询使用该 FilteredViews 以允许报告使用“在当前记录上运行”。这很好用,但它添加了“最后 X 天”并将其设置为 30。它以某种方式可以改变它,或者更好的是,完全摆脱它?这是我的参考查询:
SELECT CRMAF_Quote.QuoteNumber, CRMAF_Quote.Name, CRMAF_Quote.CreatedOn, CRMAF_Quote.CustomerIdName, CRMAF_Quote.OwnerIdName,
CRMAF_Quote.Name AS Expr1, CRMAF_Quote.BillTo_Line1, CRMAF_Quote.BillTo_Line2, CRMAF_Quote.BillTo_Line3, CRMAF_Quote.BillTo_StateOrProvince,
CRMAF_Quote.BillTo_PostalCode, CRMAF_Quote.BillTo_Telephone, CRMAF_Quote.BillTo_Fax, CRMAF_QuoteDetail.lineitemnumber, CRMAF_QuoteDetail.Quantity,
CRMAF_QuoteDetail.productdescription, CRMAF_QuoteDetail.BaseAmount, CRMAF_QuoteDetail.ExtendedAmount, CRMAF_Quote.DiscountAmount, CRMAF_Quote.TotalTax, CRMAF_Quote.TotalAmount,
CRMAF_Quote.RevisionNumber, CRMAF_SystemUser.Address1_Telephone1,
CRMAF_SystemUser.InternalEMailAddress, CRMAF_Product.productnumber, CRMAF_Product.Name AS ProductName
FROM FilteredQuote as CRMAF_Quote JOIN
FilteredQuoteDetail as CRMAF_QuoteDetail ON CRMAF_Quote.QuoteId = CRMAF_QuoteDetail.QuoteId LEFT OUTER JOIN
FilteredProduct AS CRMAF_Product ON CRMAF_QuoteDetail.productid = CRMAF_Product.productid LEFT OUTER JOIN
FilteredSystemUser as CRMAF_SystemUser ON CRMAF_Quote.OwnerId = CRMAF_SystemUser.SystemUserId
附件是它添加的 30 天的屏幕截图。
谢谢!