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.
Note: I have done full model synchronization, build, services restart and VM restart.
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.
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.
André Arnaud de Cal...
292,111
Super User 2025 Season 1
Martin Dráb
230,934
Most Valuable Professional
nmaenpaa
101,156