Ssrs group report expand-collapse in html render
I created a ssrs report in a server and this report has row groups. My use in the report is through my website as i use the reportexecutionserivcesoap to render the report in HTML4.0 format.
I put the html result (after i set the parameters in my app server) in my website and the table looks good but the problem is that when i click the expand '+' icon of the group i get an error: "This report requirea a default or user-defined value for
the report parametrt". I have read that the expand button sends a postback request to the report server so i assume that the postback request being sent without the parameters i already set.
The ultimate behavior for me is the way the excel render works - all the data is already there, its just hided and when i click the '+' button the data in the group is visible again but i didnt find a way to change the html behavior...
What can i do so the parameter (wich i noticed that exists in the html result in tags) will be sent to the report server in the postback request
thanks ahead
Hi alon0230,
According to your description, when you use the reportexecutionserivcesoap to render the report in HTML 4.0 format, you comes an error as soon as you click the expand button.
In your scenario, I would like to know if you add the subreport as the expanded content, and the subreport only run when the parameter values are specified. If so, please specify the parameter values for the subreport.
Besides, since you mentioned you are using the reportexecutionserivcesoap to render the report, could you tell me which application you are using and how it works. And about the ultimate behavior you took, do you mean that you are exporting the report to
Excel? Or render the report as Excel format with URL access? Please provide report design and some screenshots for our analysis.
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support
Similar Messages
-
Xml report Expand/Collapse option
Is there a way to show the results in the xml report in 'Collapsed form' by default, when I view report? (Report format-ATML 5.0 standard report, Style sheet - tr5_report.xsl)
I have many steps in my test sequence and the report is quite long. Because the results of all the steps and sub steps are in Expanded view by default, it is very difficult to see the results of a particular step and I have to scroll a lot.
An option to collapse all the step results at once, even after opening the report would also be helpful for me.Try using tr5_horizontal.xsl or tr5_expand.xsl stylesheet for the ATML 5.0 report. Both stylesheet has expand and collapse functionality.
Also, if you dont want any of the steps to be displayed in report, you can disable result logging for the step or use result filtering expression in Report Option to filter the step result in report.
- Shashidhar -
Classical Report Expand-Collapse functionality
Hi All!
I am doing a program that displays a classical report as an output. It has buttons on the top of the output (using Menu Painter) and it has "Expand" and "Collapse" buttons. I do not know how to implement this expand and collapse functionality. Please help.
The output of the report looks like this:
Plant: <data>
<data>
<data>
Plant: <data>
<data>
<data>
When I click on "Expand" button, the output will look like the one above. When I click on "Collapse" button, the output will look like this:
Plant: <data>
Plant: <data>
Please help me achieve this functionality.
Thank you!Hi,
Try this sample code....
DATA : BEGIN OF itab OCCURS 0,
state TYPE char20,
city TYPE char18,
flag,
END OF itab.
DATA disptab LIKE itab OCCURS 0.
DATA sel_lin TYPE char20.
START-OF-SELECTION.
itab-state = 'Tamil Nadu'.
itab-city = 'Chennai'.
APPEND itab.
itab-state = 'Tamil Nadu'.
itab-city = 'Coimbatore'.
APPEND itab.
itab-state = 'West Bengal'.
itab-city = 'Kolkata'.
APPEND itab.
itab-state = 'West Bengal'.
itab-city = 'Durgapur'.
APPEND itab.
END-OF-SELECTION.
LOOP AT itab.
AT NEW state.
WRITE /3 itab-state COLOR 4 HOTSPOT.
ENDAT.
ENDLOOP.
AT LINE-SELECTION.
MOVE sy-lisel+2(20) TO sel_lin.
LOOP AT itab.
AT NEW state.
WRITE /3 itab-state COLOR 4 HOTSPOT.
ENDAT.
IF itab-flag <> 'X'.
IF itab-state = sel_lin.
itab-flag = 'X'.
ENDIF.
ELSE.
IF itab-state = sel_lin.
itab-flag = ' '.
ENDIF.
ENDIF.
IF itab-flag = 'X'.
WRITE /5 itab-city COLOR 2.
ENDIF.
MODIFY itab.
CLEAR itab.
ENDLOOP.
Cheers,
jose. -
Decision Report: Toggling Expand / Collapse All (v10.2)
Hi everyone,
We're wondering if anyone can share an approach for enabling users to "expand/collapse all" (all nodes) in a decision report dynamically - i.e. using a button or toggle, rather than a global configuration or preference setting. For example, we would like to initially display a collapsed report (to show the high-level conclusions), and then enable the client to fully expand the report for printing.
Importantly, we would like to be able to do this in version *10.2*.
Thanks,
- PatrickGranting my JavaScript is a bit rusty, I'm wondering if anyone else has encountered the following challenge when changing the global configuration settings for decision report (expanded/collapsed):
Issue: The plus signs ( + ) at the nodes appear as minus signs ( - ), and vice versa. In other words, after our modifications, the user needs to click on a minus sign to expand a node.
Our approach was simply to do a CTRL-F and replace "expanded" with "collapsed", so it's not surprising that there were unintended side effects. -
In SQL Server Reporting Services (SSRS), drill-down is an action we can apply to any report item to hide and show other report items. They all are ways that we can organize and display data to help our users understand our report better. In this article,
we are talking about how to use parameter to control the Expand/Collapse drill-down options in SSRS report.
Consider that the report has a dataset (dsSales) with following fields: SalesTerritoryGroup, SalesTerritoryCountry, CalendarYear, SalesAmount.
1. The report has the following group settings:
Parent Group: SalesTerritoryGroup
Child Group: SalesTerritoryCountry
Child Group: CalendarYear
Details: SalesAmount
2. Add three parameters in the report:
GroupExpand:
Available Values: “Specify values”
Label: Yes Value: Yes
Label: No Value: No
Default Values: “Specify values”
Value: Yes
CountryExpand:
Available Values: “Specify values”
Label: Yes Value: =IIF(Parameters!GroupExpand.Value="No",Nothing,"Yes")
Label: No Value: No
Default Values: “Specify values”
Value: =IIF(Parameters!GroupExpand.Value="No","No","Yes")
YearExpand:
Available Values: “Specify values”
Label: Yes
Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No",Nothing,"Yes")
Label: No Value: No
Default Values: “Specify values”
Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No","No","Yes")
3. Right click SalesTerritoryCountry icon in the Row Groups dialog box, select Group Properties.
4. Click Visibility in the left pane. Select “Show or hide based on an expression” and type with following expression:
=IIF(Parameters!GroupExpand.Value="Yes", False, True)
Select “Display can be toggled by this report item” option, and select “SalesTerritoryGroup” in the drop down list.
5. Use the same method setting CalendarYear, (Details) drill-down with following expression:
=IIF(Parameters!CountryExpand.Value="Yes", False, True)
=IIF(Parameters!YearExpand.Value="Yes", False, True)
6. Click SalesTerritoryGroup text box in the tablix. Select InitialToggleState property in the Properties dialog box, and type following expression:
=IIF(Parameters!GroupExpand.Value="Yes", True, False)
7. Use the same method setting SalesTerritoryCountry, CalendarYear text box with following expression:
=IIF(Parameters!CountryExpand.Value="Yes", True, False)
=IIF(Parameters!YearExpand.Value="Yes", True, False)
After that, when we preview the report, we can use these three parameters to expand/collapse drill-down.
Note:
In our test, we may meet following issue. We can check the expression of InitialToggleState property to troubleshooting the issue.
Applies to
Reporting Services 2008
Reporting Services 2008 R2
Reporting Services 2012In SQL Server Reporting Services (SSRS), drill-down is an action we can apply to any report item to hide and show other report items. They all are ways that we can organize and display data to help our users understand our report better. In this article,
we are talking about how to use parameter to control the Expand/Collapse drill-down options in SSRS report.
Consider that the report has a dataset (dsSales) with following fields: SalesTerritoryGroup, SalesTerritoryCountry, CalendarYear, SalesAmount.
1. The report has the following group settings:
Parent Group: SalesTerritoryGroup
Child Group: SalesTerritoryCountry
Child Group: CalendarYear
Details: SalesAmount
2. Add three parameters in the report:
GroupExpand:
Available Values: “Specify values”
Label: Yes Value: Yes
Label: No Value: No
Default Values: “Specify values”
Value: Yes
CountryExpand:
Available Values: “Specify values”
Label: Yes Value: =IIF(Parameters!GroupExpand.Value="No",Nothing,"Yes")
Label: No Value: No
Default Values: “Specify values”
Value: =IIF(Parameters!GroupExpand.Value="No","No","Yes")
YearExpand:
Available Values: “Specify values”
Label: Yes
Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No",Nothing,"Yes")
Label: No Value: No
Default Values: “Specify values”
Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No","No","Yes")
3. Right click SalesTerritoryCountry icon in the Row Groups dialog box, select Group Properties.
4. Click Visibility in the left pane. Select “Show or hide based on an expression” and type with following expression:
=IIF(Parameters!GroupExpand.Value="Yes", False, True)
Select “Display can be toggled by this report item” option, and select “SalesTerritoryGroup” in the drop down list.
5. Use the same method setting CalendarYear, (Details) drill-down with following expression:
=IIF(Parameters!CountryExpand.Value="Yes", False, True)
=IIF(Parameters!YearExpand.Value="Yes", False, True)
6. Click SalesTerritoryGroup text box in the tablix. Select InitialToggleState property in the Properties dialog box, and type following expression:
=IIF(Parameters!GroupExpand.Value="Yes", True, False)
7. Use the same method setting SalesTerritoryCountry, CalendarYear text box with following expression:
=IIF(Parameters!CountryExpand.Value="Yes", True, False)
=IIF(Parameters!YearExpand.Value="Yes", True, False)
After that, when we preview the report, we can use these three parameters to expand/collapse drill-down.
Note:
In our test, we may meet following issue. We can check the expression of InitialToggleState property to troubleshooting the issue.
Applies to
Reporting Services 2008
Reporting Services 2008 R2
Reporting Services 2012 -
How to generate expand/collapse ssrs report?
Hi,
I have a requirement, where i have to expand/collapse the columns like below
ID Name Profile
1 X A
1 X B
2 Y C
2 X D
2 X E
now i want to group ID's and Names
ID name Profile
1
when i expand '1' then
ID Name profile
1 X
when i expand 'X' then i have to c Profiles of that
joHi jyoshnaa,
Based on my understanding, you want to display the Name values toggled by the ID, and the Profile toggled by Name.
In your scenario, you can specify the Visibility for the textbox as hidden, then make the Textbox can be toggled by the corresponding report item. Please refer to the steps below:
1. Specify the Visibility option for the Name group and [Profile] textbox like below:
2. Preview the report.
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
How to expand/collapse detail rows per each row in APEX reports
Hi
I want to add functionality to my APEX classic reports which allows me to expand/collapse rows using something like +/- buttons. Please let me know how to achieve this.
Thanks
HinaHi,
This Carls example might help
http://htmldb.oracle.com/pls/otn/f?p=11933:1
See also post relating that sample
Re: Question for Carl Backstrom
Regards,
Jari
http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0 -
Expand & Collapse groups of rows like an outline?
Is it possible to have a group of rows collapse into one as if it were an outline?
There is no way to "collapse" a group of rows because there is no inherent outline hierarchy in them.
However, you can create rows that duplicate any level of an outline structure, order rows below them as if they were elements of that structure, & hide whatever rows you don't want to see. Unfortunately, revealing hidden rows is an all or nothing process, so this won't function like it would in an outline.
You can create something more like a collapsable outline structure by using the bullet options in the Text Inspector & checking or not checking the 'Wrap Text in Cell' option. -
Drill Downs in SSRS 2010 reports
Hello, I have a SSRS 2010 report that I’m trying to add some drill down features in List report.
My dataset has the following fields:
NAME
MANAGER
SEC_TYPE
BUYS
SALES
NEW_MONEY
AUM
My Rows groups are:
NAME – Parent Group
SEC_TYPE – Child Group
My columns are in this order NAME , SEC_TYPE, MANAGER , BUYS , SALES , NEW_MONEY,
and AUM. The NAME and SEC_TYPE groupings are visible and the individual fields are hidden.
I would like to add drill downs to report to do the following
Show consolidated view of NAME, BUYS, SALES, NEW_MONEY, and AUM only. Essentially, I want to remove all the detail that SEC_TYPE and MANAGER brings into the report.
2. When a user clicks a textbox it will expand into the view that adds the SEC_TYPE detail to the report.
3. Then when a user clicks another textbox it will expand to add the Manager detail to the report as well.
So I’m basically trying to give the user a very consolidated view and then have the ability to see more data upon request.
I think some of can visibility settings..
Any help would be greatly appreciated.
xDrill downs are pretty straight forward. You create your tablix so it shows all of the desired data, grouped as you want. Add a Total row to show the summary data when the group details are collapsed. Then in each group properties starting from the Details
and working up, set Visibility to Hide and to be toggled by another control. That control should be the textbox in the cell for the parent group. Continue this to the point that the report initially renders in the desired consolidated view. Each cell that
controls the visibility of child groups will have a + next to it that can be clicked to expand the child groups data.
"You will find a fortune, though it will not be the one you seek." -
Blind Seer, O Brother Where Art Thou
Please Mark posts as answers or helpful so that others may find the fortune they seek. -
Please help. I have a matrix report. In the report I have row group PO Type. One the Column groups I have a parent group by Fiscal Year, and then a child group by Month. When I run the report, I get two years of data back broken
out by month. Please see below.
Now here is where I am getting stuck. I need to take the variance between the current month of the current year, from the same month of the prior year. So I need to show the difference between Oct , 2014 from Oct, 2013. November, 2014 from November
2013... etc. etc.
In the example below, how do I create a column or row showing the variance for Contracts for October 2014. I need to take the contracts for October 2014 which is 3 and subtract that from October 2013 which is 8. Any suggestions? How do I do that
for each month? Then I need to do it for the quarter... then the year? But I'll be happy if I can just get the month working first.
Any help will be appreciated.
here is what my rdl file looks like.
Here is what my report looks like when I render it.Hi Adrian_s2012,
According to your description, you want to compare values for the month of current year with the month of prior year and get the variance. Right?
In Reporting Services, we don't have any function to get this "Year to Year" Growth. In this scenario, if you data source is a cube, we suggest you use Analysis Services to achieve your requirement. If this data source is just from database, it will be hardly
to calculate the variance because we need to compare the values within every two different column group and matrix generate adjacent columns one by one. Even we make it by using custom, every time executing the long code when generating result
in a cell will reduce a lot of performance, we really don't suggest to do that in SSRS. Here is a thread with much easier requirement, please take a reference of that:
http://social.msdn.microsoft.com/Forums/office/en-US/842e2dcb-d949-4297-9d91-eac989692cb5/difference-between-the-grouped-column?forum=sqlreportingservices
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
SSRS 2012 report integrated with SharePoint 2013 issue :Report refreshing after some idle time
we have SSRS 2012 report integrated with SharePoint 2013 , when we click on any toggle item after some idle time of 60 secs and try again to expand
another toggle item then complete report is getting refreshed and if we are in child report it is redirecting to parent report. . we didn’t set any refreshing property at report level. I hope there will be some idle time setting at sharepoint site
level.
what we observed.
1. there is no problem when we expand toggle items without any idle time.
2. when we open the report and expand few toggles and keep idle for 60 seconds and try
again to expand another toggle item then complete report is getting refreshed (all toggle items are collapsing).
3. If you keep idle for 60 minutes and if you didn’t do any action like expanding toggle
items it is not refreshing.
why it is happening and how to stop that complete refresh.
Surendra ThotaHi Surendra,
I have tested on my local environment and the issue can be caused by the session time out ,the time out of the report precessing, database timeout,DataSet query execution timeout and so on.
I would like to confirm that the refresh you have mentioned is the page refresh or the report reloading?
Please reference to the setting below to don't limit the timeout values if you got the report reloading:
Point to a report in the library.
Click the down arrow, and select Manage processing options.
In Processing Time-out, select Do not time out report processing or
Limit report processing in seconds if you want to override that value with no time-out or different time-out values.
If you got the session timeout that refresh the page, please reference to the setting in below article:
http://msdn.microsoft.com/en-us/library/gg492284.aspx#bkmk_session_settings_section
Details information in the article below about the timeout setting for your reference:
Set Processing Options (Reporting Services in SharePoint Integrated Mode)
If you still have any problem, please feel free to ask.
Regards
Vicky Liu
If you have any feedback on our support, please click
here.
Vicky Liu
TechNet Community Support -
Hello,
.Net 4.0\VS2010\C#\ssrs 2008 on Sql Server 2008R2
Having a problem printing a Server report while controlling the orientation and the size of the emf rendered to the physical page.
I have the report cutting off in both landscape and portrait modes. I'm passing the following deviceinfo to the render function:
string DeviceInfo =
@"<DeviceInfo>
<OutputFormat>EMF</OutputFormat>
<PageWidth>8.5in</PageWidth>
<PageHeight>11in</PageHeight>
<MarginTop>0.25in</MarginTop>
<MarginLeft>0.25in</MarginLeft>
<MarginRight>0.25in</MarginRight>
<MarginBottom>0.25in</MarginBottom>
</DeviceInfo>";
return DeviceInfo;
string mimeType; string fileExtension; Stream pageStream = serverReport.Render("IMAGE", deviceInfo, firstPageParameters, out mimeType, out fileExtension);
No other settings seem to have an affect on controlling the output to printer or pdf. i.e. The deviceinfo params fed to server report's render function are all you get. I think my original code comes from an MSDN or CodeProject example. I'm not
inventing anything new here.
Links below indicate similar problems but they are looking at the issue from just landscape mode. Seems like I ought to be able to squash or expand the image to whatever size I specify, separate from the 'page' size. Please let me know what i need
to know to make these reports print without bleeding onto 2 pages or slicing off the right side of the document image.
http://stackoverflow.com/questions/25652415/cant-print-ssrs-rdlc-report-in-landscape-mode-directly-to-printer-using-suggest
https://social.technet.microsoft.com/Forums/sqlserver/en-US/06a9b432-c8a5-4952-a07c-867742a26c47/print-rdlc-without-report-viewer-either-in-portrait-or-landscape?forum=sqlreportingservices
print ssrs rdlc report in landscape mode directly
Thanks!Hi
FraterJoanni,
Thanks for posting in MSDN forum.
I am not expert in SSRS. You should get better response in SQL Server > SQL
Server Reporting Services, Power View forum.
After take a look at the similar threads links as you posted above.
The conclusion is we needn’t tell the program o this report is landscape not portrait. If the width is larger than the height, the report will be printed in landscape; otherwise, it will be printed in portrait.
>>Links below indicate similar problems but they are looking at the issue from just landscape mode.
But in C# forum, we only from the point of code, code looks OK to me.
A similar blog talking about this
Controlling Page Size in a Reporting Services Report
And I have got the default page size in the US is Letter, 8.5in x 11in. In other parts of the world A4 (8.3in x 11.7in) is the standard.
65: //build the device settings (A4 8.3 × 11.7)
66: string deviceInfo = string.Format("<DeviceInfo><PageHeight>{0}</PageHeight><PageWidth>{1}</PageWidth></DeviceInfo>", "11.7in", "8.3in");
67:
68: //get report bytes
69: result = rs.Render(format, deviceInfo, out extension, out encoding, out mimeType, out warnings, out streamIDs);
70:
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Expand/Collapse function in WAD 7.0
Hi,
I have made a report in WAD using a table and a chart. In the output which I am running on a portal I have a table Report Navigation with in which I have some of the export options and an Expand / Collapse icons are present on the button group and also I have one drop down box calendar year .As soon as I click on the icon Collapse in the above table Report Navigation my drop down should get collapsed and again when I click on the Expand the drop down should be visible
Report naviagtion and Drop down boxes are present in a seperate table where in when I click on the icons( Expand / Collapse ) it should get reflected on the dropdown box which is present on the 2nd table
I have done the above in WAD 3.5 using Java script Code
How can this be done in WAD 7.0
Regards,
MayaHi,
After setting the Analysis item properties, just click on the 7th icon on top menu bar, i think its Verify or Check on server. Somthing like that.
Or try re-opening the template after sometime. Close the existing Web window, where you see your output, and execute the template once again. This should work.
If nothing of the above works, theres one more thing. You may have to re-create the Template.
This happens at times when there is no proper connection between the Portal and WAD. I have faced it myself. So, just try something like that. -
Form - Expand/Collapse sections to simulate website, is this possible?
Hello,
My FLA file is based in CS5 with AS3. I posted this in the AS3 forum but if it can be done without AS3 then I am open to that possibility as well.
I am creating a non-functioning form, meaning I just need it to look like a form but the functionality doesn't need to work. Atleast not in this stage of development.
The functionality I need basically looks like the following:
- http://static.geewax.org/checktree/index.html (What would this be called in the flash world?? my google search terms have not been successful)
Where:
1. Clicking the arrow expands a section.
2. The arrow changes to a different arrow when the section is expanded.
3. It will be inside of a white box, the white box needs to resize to either shrink or get taller when a section is expanded or collapsed.
One section will be checkboxes, and one section will be radio buttons.
Thank you very much in advance . I look forward to exploring into how to accomplish such a thing.
Message was edited by: da4seenOkay,
I know I may be going at this completely wrong but posting my code here so someone can give me feedback so far and point me in directions where I need improvement.
So far this code:
1. Expands/Collapses the 1st section, and properly moves the 2nd section to the correct position.
My problem so far is:
1. The contents of the 2nd section doesn't update to the correct position when section 1 expands/collapses.
import fl.controls.CheckBox;
import fl.controls.RadioButton;
//Set Variable for collapse position
var collapsePosition:int = 0;
// Tab1 Group 1
var tab1_gp1_main:CheckBox = new CheckBox();
var tab1_gp1_op1:CheckBox = new CheckBox();
var tab1_gp1_op2:CheckBox = new CheckBox();
addChild(tab1_gp1_main);
tab1_gp1_main.move(-110, -300);
tab1_gp1_main.width = 120;
tab1_gp1_main.label = "Landscape";
// Tab1 Group 2;
var tab1_gp2_main:CheckBox = new CheckBox();
var tab1_gp2_op1:CheckBox = new CheckBox();
var tab1_gp2_op2:CheckBox = new CheckBox();
addChild(tab1_gp2_main);
tab1_gp2_main.move(-110, 20 + tab1_gp1_main.y );
tab1_gp2_main.width = 120;
tab1_gp2_main.label = "Performance";
// Section Click Listeners
tab1_gp1_main.addEventListener(MouseEvent.CLICK, sectionHandler);
tab1_gp2_main.addEventListener(MouseEvent.CLICK, sectionHandler);
function sectionHandler(event:MouseEvent):void
switch (event.currentTarget)
case tab1_gp1_main :
switch (tab1_gp1_main.selected)
case true :
addChild(tab1_gp1_op1);
addChild(tab1_gp1_op2);
tab1_gp1_op1.move(-100, 20 + tab1_gp1_main.y);
tab1_gp1_op1.width = 120;
tab1_gp1_op1.label = "test 1";
tab1_gp1_op2.move(-100, 20 + tab1_gp1_op1.y);
tab1_gp1_op2.width = 120;
tab1_gp1_op2.label = "test 2";
collapsePosition = tab1_gp2_main.y;
tab1_gp2_main.move(-110, 20 + tab1_gp1_op2.y);
break;
case false :
removeChild(tab1_gp1_op1);
removeChild(tab1_gp1_op2);
tab1_gp2_main.move(-110, collapsePosition);
break;
default :
trace('Something is wrong');
break;
case tab1_gp2_main :
switch (tab1_gp2_main.selected)
case true :
addChild(tab1_gp2_op1);
addChild(tab1_gp2_op2);
tab1_gp2_op1.move(-100, 20 + tab1_gp2_main.y);
tab1_gp2_op1.width = 120;
tab1_gp2_op1.label = "test 1";
tab1_gp2_op2.move(-100, 20 + tab1_gp2_op1.y);
tab1_gp2_op2.width = 120;
tab1_gp2_op2.label = "test 2";
break;
case false :
removeChild(tab1_gp2_op1);
removeChild(tab1_gp2_op2);
break;
default :
trace('Something is wrong');
break;
I have the above AS code inside a movieclip timeline, not sure if this was proper or not but I was trying to keep some code away from my long AS statements on my main timeline. -
SUM problem in SSRS 2005 report
I don't know how best to explain this but will try.
In my SSRS 2005 report, i have one group in my table. In that group, I have a field that for each company record in my dataset, this field value is repeated for each record. This is a transactions table so you'd expect several records in the dataset for each company..that's not the problem.
example data from dataset:
TransID CompanyID FeeGoal
1 1000 100
2 1000 100
3 1000 100
4 2000 400
5 2000 400
My SSRS 2005 Report has:
Group1 fields:
CompanyID FeeGoal
=Fields!CustomerNumber.Value =Fields!FeeGoal.Value
The output when previewed looks like this:
Company FeeGoal
1000 100
2000 400
Footer 209409730.83 (totals up all feegoals! not just unique instances!)
I have a footer, and this is where the problem comes in. I am not able to sum 100 + 400 because if I do a SUM(=Fields!FeeGoal.Value) It doesn't just sume up 100 + 400 but rather (100 + 100 + 100) + (400 + 400)
I can't find a way to sum up basically the top values for FeeGoal which is really what the Group Field is doing since I get 100 and 400 in my group field for feeGoal. I should end up with a total of 500 for my footer total for Fee Goal but not sure how to get this to work in this unique situation.
FYI: FeeGoal is an input from an ASP.NET form to allow managers to update that one column in my report so that other calculations can rely on it in my group fields. Once the user finishes, I run a stored proc to insert that fee goal in every customer transaction record / feegoal field
I guess is there a way to do some sort of Distinct SUM in an expression? I also tried:
=SUM((Max(Fields!FeeGoal_AZ.Value)) / Fields!FeeSchedule.Value) * 100)
but you can't have an aggregate function like this, I get this error:
[rsAggregateofAggregate] The Value expression for the textbox 'GrossGoal_gt' contains an aggregate function (or RunningValue or RowNumber functions) in the argument to another aggregate function (or RunningValue). Aggregate functions cannot be nested inside other aggregate functions.
Build complete -- 1 errors, 0 warnings
Hi,
I need to generate a SSRS 2005 report like bellow:
OrderNumber MultiInvoice SalesAmt
TaxAmt TotalAmt
301256 1
302 20 322
369856
501 10 511
359826
456 1 457
785412 2
725 25 750
totalRow=4 totalRow=2 Sum=1984 Sum=56
Sum=2040 ----------------------->Footer
--I added textbox in ther footer of that report table, and try to add expression for each, like
1>OrderNumber : =CountRows()
2>MultiInvoice : =Count(column name) //but it is return no of rows,
where it should be only 2.
How can do that?
3>SalesAmt : =
SUM(Fields!SalesAmt.Value) //It is not returning actual summation of all rows for
SalesAmt
column. How can I do that?
Dipen Bhadra
Maybe you are looking for
-
What does it take to make "find me" work
what does it take to make "find me" work on a mac mini. there are 3 users. Would I need to make an apple ID for the administrator. If it gets stolen, I can track it down.
-
Error in identifying control file during 11g Upgrade..
Oracle10gR2 OEL4 64bit non-RAC with ASM Hi All, I am trying to upgrade our database to 11g and I am getting the following error when I try to start the database with the STARTUP UPGRADE command. I am doing a manual upgrade and following the Upgrade g
-
How to set a CLASSPATH in JBuilder8
I know it's probably a really easy answer or an incredibly stupid question but how do you set a classpath using JBuilder8 I'm trying to run a web-service and I need no access "axis jar files" I could really do with some help thanks "be wildered IT in
-
I have added a song to replace the Revolution's theme music. Is ther a way to set a specific section of the song to play instead of the entire song?
-
Iphone is no longer a label option when setting up a new contact
when setting up a new contact, iphone is no longer a label option. any idea how to get it back?