web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Not Getting data while selection of single date

(0) ShareShare
ReportReport
Posted on by

Hi all,

In SSRS report not getting data if i select same date as fromdate and todate, 

ex: Transdate>= fromdate && Transdate<=todate

pls help me in this regard...

*This post is locked for comments

I have the same question (0)
  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi,

    Can you share how you entered the filters when you started the report?

    Best regards

    Ludwig

  • Lee Bailey Profile Picture
    340 on at

    Without more information I would suggest that the most likely reason would be that when you are selecting FromDate and ToDate they are getting exactly the same date AND timestamp e.g:

    4/19/18 00:00:00 (From)

    4/19/18 00:00:00 (To)

    I would then check the actual data and it this does include a time stamp then you will not get any records returned :

    4/19/18 07:30:00 (Actual data)

  • Community Member Profile Picture
    on at

    0640.report.png

    Hi,

    Thanks for your reply...

    Please have a look on how i entered filters.

  • Community Member Profile Picture
    on at

    and pls check my dp class which am using...

    [SysEntryPointAttribute(false)]

    void processReport()

    {

       AcxCashSalesDC  acxCashSalesDC;

       AcxPOSSalesPaymentsSyncTable    acxPOSSalesPaymentsSyncTable;

       AcxPOSSalesSyncHeaderTable      acxPOSSalesSyncHeaderTable;

       InventSite              inventSite;

       FromDate                fromDate;

       ToDate                  toDate;

       AcxClusterCode          acxClusterCode;

       InventSiteId            inventSiteId;

       AcxCashSalesDC = this.parmDataContract();

       fromDate             = acxCashSalesDC.parmFromDate();

       toDate               = acxCashSalesDC.parmTODate();

       inventSiteId         = acxCashSalesDC.parmInventSiteId();

       acxClusterCode       = acxCashSalesDC.parmAcxClusterCode()

       ;

      while select Store,TransDate,sum(AmountPaid),sum(BalanceReturned) from acxPOSSalesPaymentsSyncTable

      group by Store,TransDate

      join BillNumber from acxPOSSalesSyncHeaderTable

      group by BillNumber

      join acxClusterCode,SiteId,Name from inventSite

      group by acxClusterCode,SiteId,Name

      where acxPOSSalesPaymentsSyncTable.Store == acxPOSSalesSyncHeaderTable.store

      && acxPOSSalesPaymentsSyncTable.Store == inventSite.SiteId

      && acxPOSSalesPaymentsSyncTable.DocumentNo == acxPOSSalesSyncHeaderTable.DocumentNo

      && (acxPOSSalesPaymentsSyncTable.PaymentMethod == "1"||acxPOSSalesPaymentsSyncTable.PaymentMethod == "12")

      && acxPOSSalesPaymentsSyncTable.TransDate >= fromDate

      && acxPOSSalesPaymentsSyncTable.TransDate <= toDate

      && (!inventSiteId || inventSite.SiteId == inventSiteId)

      && (!acxClusterCode || inventSite.AcxClusterCode == acxClusterCode)

       {

           acxCashSales.clear();

           acxCashSales.initValue();

           acxCashSales.TransDate = acxPOSSalesPaymentsSyncTable.TransDate;

           acxCashSales.CashAmt = (acxPOSSalesPaymentsSyncTable.AmountPaid-acxPOSSalesPaymentsSyncTable.BalanceReturned);

           acxCashSales.BillNumber = acxPOSSalesSyncHeaderTable.BillNumber;

           acxCashSales.Store = inventSite.SiteId;

           acxCashSales.Name = inventSite.Name;

           acxCashSales.insert();

       }

    }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans