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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Report dates are not getting in ssrs report

(0) ShareShare
ReportReport
Posted on by 1,836

 I  have created report which brings daily transaction , but when i select the date filter its skipping the date which is not having transaction ,

e.g  if i am selecting date from 1/3/2023 to 31/3/2023  its getting only transaction of 31/3/2023 but i need to show remaining transaction also like

1/3/2023

2/3/2023

3/3/2023

4/3/2023

5/3/2023....and so on.

so how can i get this done my code is below. can anybody have suggestion on this so  i can increment the value by date till todate . plz guide me on this.

  qbdsGenalAcEntry = qbdsMainAccount.addDataSource(tableNum(GeneralJournalAccountEntry));
                qbdsGenalAcEntry.joinMode(JoinMode::InnerJoin);
                qbdsGenalAcEntry.addLink(fieldNum(MainAccount, RecId), fieldNum(GeneralJournalAccountEntry, MainAccount));

                qbdsGeneralJourEntry = qbdsGenalAcEntry.addDataSource(tableNum(GeneralJournalEntry));
                qbdsGeneralJourEntry.joinMode(JoinMode::InnerJoin);
                qbdsGeneralJourEntry.addLink(fieldNum(GeneralJournalAccountEntry, GeneralJournalEntry),fieldNum(GeneralJournalEntry, RecId));
                qbdsGeneralJourEntry.addRange(fieldNum(GeneralJournalEntry, AccountingDate)).value(queryRange(fromDate,toDate));

                QueryRun    qr = new QueryRun(query);


                while (qr.next())
                {
                    MainAccount mainAccount = qr.get(tableNum(MainAccount));
                    GeneralJournalAccountEntry genJourAcEntry = qr.get(tableNum(GeneralJournalAccountEntry));
                    GeneralJournalEntry genJourEntry = qr.get(tableNum(GeneralJournalEntry));

                    cashBalTmp.clear();
                    cashBalTmp.DTDataAreaID = _dataAreaId;
                    cashBalTmp.MainAccountId = mainAccount.MainAccountId;
                    cashBalTmp.Name = mainAccount.Name;
                   
                    cashBalTmp.AccountingDate = genJourEntry.AccountingDate;
                     
                    cashBalTmp.TransactionCurrencyAmount = genJourAcEntry.TransactionCurrencyAmount;
                    cashBalTmp.insert();
                }

I have the same question (0)
  • GirishS Profile Picture
    27,843 Moderator on at

    Hi Dinesh,

    Have you debugged the code?

    Print the query in the info log and see how the query is built in.

    Thanks,

    Girish S.

  • Suggested answer
    Anton Venter Profile Picture
    20,678 Super User 2026 Season 1 on at

    I see you have to date variables: fromDate and toDate. If you are entering Date from: 01-03 and Date to 31-03

    Looking at your code, then it would seem that the fromDate is also set to 31-03 somehow. So the resulting query would be from date: 31-03 and to date 31-03. That could be the reason why you are seeing results from 31-03 only.

    As Girish said, you will have to debug it to find out what's goin on.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 733

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 278 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans