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, ...
Unanswered

Temporary table field value, is getting override to 0 at SSRS report

(0) ShareShare
ReportReport
Posted on by 5

Hi all, 

I m developing a SSRS report which has to show data based on month and based on report parameter selected, 

The fields in my table are

:ItemId

Category

MonthName

MonthNumberTwo -----> lenth of container containing the monthname objects fetched from given data range

QTY     

VALUE

I have row grouping on group on properties: if(item category is selected, group on category, else group on  itemid ).

I have column grouping on MonthName thats shows qty and value for the given date range.

I need to show avg column , in the  report, as shown in the image below:

I am calculating Avg of qty and value as:

Sum(Fields!QtyTwo.Value) / Fields!MonthNumberTwo.Value   

Qty:

Sum(Fields!QtyTwo.Value)/Fields!MonthNumberTwo.Value

The problem I am facing here is, when i access the field out of MonthName group:

 Fields!MonthNumberTwo.Value   =0 

Sum( Fields!MonthNumberTwo.Value )= sum of no of  months occurence

I wanted to access the  Fields!MonthNumberTwo.Value  as it is.

I am not able to figure out why the MonthNumberTwo is getting override to 0 in report  while  RDP class in debugger  is working correctly.

Your suggestion would be really helpful.

Thanks.

image_5F00_2023_5F00_01_5F00_06T10_5F00_28_5F00_34_5F00_981Z.png

image_5F00_2023_5F00_01_5F00_06T10_5F00_38_5F00_25_5F00_591Z.png

Note: I have done full model synchronization, build, services restart and VM restart.

  • GirishS Profile Picture
    27,845 Moderator on at

    Hi Asmita sunuwar,

    From the screenshot of the report design I guess you have added MonthNumberTwo expression after the column group.

    Try adding that text box expression before column grouping  and check whether you are getting any values.

    Also after deploying report try restarting the  SQL Server Reporting Services.

    Thanks,

    Girish S.

  • Asmita Sunuwar Profile Picture
    5 on at

    Thank you for the reply Girish.  

    I have done column grouping in Month and  MonthTwo  in table one and table two, for tableone MonthNumber value is coming as it suppose to be but at table two its getting override to 0 out of group.

    MonthNumber two is my conLen that i needed to accessed out, so i got the solution to access it out using Last().

    Thanks.

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 265 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 215

#3
Subra Profile Picture

Subra 177 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans