SSRS Adjacent groups subtotals - reporting-services

I'm having issues to show subtotals for adjacent groups which are inside of a parent group. The grouping structure is something like this:
ParentGroup1 : 20
ChildGroup1 : 8
ChildGroup2 : 8
*TOTAL FOR ChildGroup3* : 4
ChildGroup3.1 : 2
ChildGroup3.1 : 2
ParentGroup2
I already have the grouping structure , with three adjacent groups for each of the child groups.
When I try to add a total for ChildGroup3 , it adds me row before the group with the expressions needed. However, it doesn't take into account the filters that I have for ChildGroup3. It shows me the values , grouping by ParentGroup1. This meaning that it shows me TOTAL FOR ChildGroup3 : 20 , instead of 4.
Any idea of how should I add the Total rows so that it sums 4, instead of 20? Adding totals for the group doesn't work as expected.
Also, I can't add a footer to the group, since the options appears disabled every time I add a new group.
Thanks in advance.

I solved this by adding an additional parent group for ChildGroup3. The additional parent group was created based on the value of a calculated field that I added to the Dataset , to differentiate the items within this group from the other items of the other groups.Then, for this new parent group it allowed me to add a header and I could add my subtotal there :)

Related

SSRS hiding a row group if there are no detail rows

Can someone please help me write a custom code that will check if the details of the row group = nothing? I'd like to use this as a show/hide expression such that table 0 will not display if there are no records within the group.
I can't seem to use aggregations for the row group details at the row group level.
Edit:
example 1 with a detail row
example 2 with without a detail row but the group header still displays. I'd like to hide this group completely:
OK, so it looks like you want to hide a table, not just a group within a table.
If this is not correct , please post your full report design.
You should be able to just count the rows in the dataset that the table is bound to.
So if your table is bound to `DataSet`` the 'Hidden' property would just be
=COUNTROWS("DataSet1") = 0
"DataSet1" is the name of the dataset, it is case sensitive and must be enclosed in double quotes.
The table will be hidden but the space it consumes will not be used, in other words, you will have a blank space where the table should be.
Alternatively, you can set the NoRowsMessage property to simple text message or an expression which will be displayed instead of just hiding the table.
I ended up using an IIF(IsNothing(Fields!MyField.Value), Parameters!ShowMissingGroup.Value,False) for the row group expression visibility then using a parameter to hide/show it.

SSRS line chart category group label not working

I want to group my X axis on the month number but display the month name. I have this accomplished in my category group but it only displays as month number no matter what I put in the label property of the category group. I tried to follow up with this post but didn't have enough reputation.
Label expression works on the series groups, but not on category groups
Just in case anybody ends up here, I found my problem. I had the axis type set as scalar instead of category. I guess when scalar is selected the label field isn't used.

Filtering ssrs hide values

I added filter into row group like:
But for some reason it hides values more than 0, so in report I show separate values and then sum of all but for some reason filter hides that columns for example:
it will throw more registers to complete 11 (when I remove filter) I can show them. What am I doing wrong?
Expression: =iif(IsNothing(Fields!nPeriodo.Value > CINT(replace(left(Split(Parameters!DimTiempoMes.Value,"[").GetValue(3),2),"]",""))),0 ,Sum(Fields!PPMS_PPM.Value))
I solve it. Just added a Sum to Filter expression like:
=Sum([PPMS_PPM])

ssrs 2008 R2 show/hide not working on expression

I have this problem, which I have already googled,searched on stack overflow and tried every possible solution that I could found on the internet.
I have a table like this:
When the table is initally loaded the value are not visible and have to be toggled by Filter
After I click on the value, the dataset is filtered, and the Filter group will contain only 1 Value (the one that was selected) after the report reloads.
With an expression I made the left side look orange like the following, if only 1 value in a group exists :
Now I would like to also show the value on the right, but it does not work with all expressions i tried on text box level and/or group level :
=IIF(Fields!filter.BackgroundColor = "Orange" ,false,true)
=IIF(Fields!filter.BackgroundColor <> "Orange" ,true,false)
Can someone help Please ?
After days of trying in different ways, the only working solution was to add an extra column to my dataset called "hidden". If a filter value is the only value counted (grouped by filter) then put a 0 in the hidden field ,else 1 which results in something like :
Filter Value Hidden
A B 1
A C 1
B A 0
After that, on the text field Hidden Value i used expression
=CBool(Fields!hidden.value)
This Worked Great!

SSRS Sum in table group

I am working on SSRS reporting services.
I have a table on which I applied group. Originally I had this data:
I changed something in my tablix and created a tablix and added a parent group of Age i.e. left column and then in the right column, I applied an expression: =SUM(Fields!AgeTotal.Value, "Group1")
which made the result like this:
Now I want 3,3,3 and 2,2 not to repeat and make them 1 row of each group.
Like this:
UPDATE:
Right Click on the details cell and select add Total, then right click on the entire details rows and change it's visibility to Hide.
This should do the trick!
EDIT
Setp by step tutorial with Image:
First image example: on the left the result you want, on the right the result you get from a simple grouping.
I'm getting the sum(but you could use a count or whatever aggregation you want) of the field lam_larghezza (which, for your information, is a width) group by different lam_spessore values (which, is a thickness)
I'm sorry but mi IDE is in Italian so here a simple translation:
Aggiungi -> Add
Gruppo -> Group
Righe -> Rows
Raggruppa per -> Group By
Totale -> Total
Dividi Celle -> Split Cell
Visibilità Righe -> Row visibility
Let's start!
Create the dataset for the report and clean the report
Add a table to the report
Add the detail field in the data row
Right click on the full row
Add group -> Row group -> father group -> group by grouping field (should be age)
Click on the detail cell (only the cell not the entire row, and remember that the cell had to be highlighted not the text inside the cell, because two different contex menu appear) -> Add Total
You now have 1 grouping cell and two detail cell
split the grouping field cell
set the visibility of the detail row to hidden
And you are done!