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

Announcements

News and Announcements icon
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

I have the same question (0)
  • Suggested answer
    Mahmoud Hakim Profile Picture
    17,887 on at

    i suggest to use rank() function

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

  • Community Member Profile Picture
    on at

    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

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 21

#2
dserp Profile Picture

dserp 4

#2
dekion Profile Picture

dekion 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans