Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

[SSRS]: Row Number in Footer

(0) ShareShare
ReportReport
Posted on by 1,262

Hello Community,

I was wondering if there was a way to get the Number of rows inside a footer.

I tried the RowNumber function but it is giving an error as it is not allowed to use it inside a footer or header

thank s a lot for your help,

Kind Regards,

Jihane

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: [SSRS]: Row Number in Footer

    Since RowNumber() function can only be used in the report body to retrieve the number of rows in the specified scope, we could not use it in either the Header or Footer area.

    We could use other counting function such as CountRows() or Count() to retrieve the number of rows returned for the dataset.

    =CountRows("MyDataset")

    OR

    =COUNT(Fields!Name.Value)

  • Verified answer
    syed baber Profile Picture
    syed baber 11,627 on at
    RE: [SSRS]: Row Number in Footer

    Hi Jihane,

    The header and footer sections are used to display the single row data such page number, invoice date, invoice number etc which is common for the whole report and does not have different values based on each record. This is the reason, you can't put table control inside header and footer section. I hope you understand my point.

    Considering the above, if you can let me know what are you trying to achieve, may be I would be able to suggest you better solution.

    Thanks,

    Baber.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans