Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Expression some fields showing with sum starting and some fields are showing starting with first

(0) ShareShare
ReportReport
Posted on by 3,090

Expression.png

Hi Experts,

Why some of the expression fields are shown starting with "SUM" and some are shown starting with "First"??(Developing a SSRS report)

Best Regards,

Shabir Ahmad

  • Shabir Ahmad Profile Picture
    Shabir Ahmad 3,090 on at
    RE: Expression some fields showing with sum starting and some fields are showing starting with first

    Thanks for your reply,

    What was my confusion for last query was, why dataset shows =sum and =first from DP class and tmp class. I cleared myself. When i took int in expression it will give =sum and when i took  string data type in tmp table it gives me =first in expression dataset

    Thanks

  • Shabir Ahmad Profile Picture
    Shabir Ahmad 3,090 on at
    RE: Expression some fields showing with sum starting and some fields are showing starting with first

    If you can clear one thing is why =sum coming automatically are there is some other reason, why it is not showing =sum  for some values  in dataset  and  other are showing =first .is there any reason??..

    Shabir

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 231,409 Most Valuable Professional on at
    RE: Expression some fields showing with sum starting and some fields are showing starting with first

    Let's say the data source has three records, with values 1, 2, and 3.

    =FIRST(Value) returns 1, because that's the value of the first record.

    =SUM(Value) returns 6, because that's the sum of all values (1+2+3).

    If there is a single record only, than the result will be the same, because both expressions will take the value of the single record.

  • Shabir Ahmad Profile Picture
    Shabir Ahmad 3,090 on at
    RE: Expression some fields showing with sum starting and some fields are showing starting with first

    Thanks for your response,

    I mean to say i am making RD base report and in dataset expression why some value are showing =First and why some are showing =Sum, let say if i take one value with =sum(Value) in place of =first() for more it clear  value in dataset is =sum(ABC) and i make it =First(ABC) will it affect on value will be shown on Report?

    Best Regards,

    Shabir Ahmad

  • Martin Dráb Profile Picture
    Martin Dráb 231,409 Most Valuable Professional on at
    RE: Expression some fields showing with sum starting and some fields are showing starting with first

    I'm not sure what you want to hear.

    Some expressions use FIRST() function to get the first value only, other experssion use SUM() function to summarize multiple values to a single one.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans