Skip to main content

Notifications

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.

  • Asmita Sunuwar Profile Picture
    Asmita Sunuwar 5 on at
    RE: Temporary table field value, is getting override to 0 at SSRS report

    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.

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Temporary table field value, is getting override to 0 at SSRS report

    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.

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,934 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans