Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Continuously Row Number from Different Datasets

(0) ShareShare
ReportReport
Posted on by

Hi Expert,

I need you guys suggestion about my problem.

Im making a SSRS Report and the report using 2 datasets and 2 design.

4201.4.png

Every report contain 2 datasets.

0272.3.png

Above is the Summary design, the report using 2 datasets, and every datasets Im adding table and group it by Account Number.

Below is the result of the report, number 1-4 is the dataset 1 and from the second number 4 is the result of the dataset 2.

83257.2.png

In the dataset 1 Im using this code

=RunningValue(Fields!PIL_AkunNumber.Value, CountDistinct, "Vendor_DS")

and in the dataset 2 Im using the same code Im using for dataset 1, so the result showing number 4 repeatedly.

If Im using this code below for dataset 1

=RunningValue(Fields!PIL_AkunNumber.Value, CountDistinct, "Vendor_DS")


and using this code below for dataset 2

=RunningValue(Fields!PIL_AkunNumber.Value, CountDistinct, "Journal_DS")


Here is the result

2046.5.png

I need to make the row number repeat continuously 1,2,3,4,5,6,7,8 not 1,2,3,4,1,2,3,4 or 1,2,3,4,4,4,4,4

Is there any possibilities to make report according to my requirement ?
Please tell me if you guys have any idea, I've tried some research on the internet and still not found something helpful.

Regards,

Enggar

*This post is locked for comments

  • Suggested answer
    Mahmoud Hakim Profile Picture
    17,887 on at
    RE: Continuously Row Number from Different Datasets

    you need to implment

    social.msdn.microsoft.com/.../ranking-in-ssrs

    stackoverflow.com/.../how-to-assign-rank-in-ssrs-report

  • Community Member Profile Picture
    on at
    RE: Continuously Row Number from Different Datasets

    Hi MahmoudHakim 

    Thanks for your reply.

    How can I apply the rank query? Because I cant find it in Microsoft Visual Studio?

    Regards,

    Enggar

  • Suggested answer
    Mahmoud Hakim Profile Picture
    17,887 on at
    RE: Continuously Row Number from Different Datasets

    i suggest to use rank() function

    http://masud-ahmed-ssrs.blogspot.ae/2014/12/sql-query-sql-server-ranking-functions.html

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 46

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans