Ssrs 2008 r2 display only final total amount
In an existing ssrs 2008 r2 report, I want the final grand total to appear as the last amount displayed in the SSRS report.
In the 'main' matrix of the report, I have created an outside group row below the last line of the matrix.
The expresion for this statement looks the the following:
="Grand Total: $"+str(sum(cdec(Fields!TransactionAmount.Value),"datasetname")).
The total amount is correct, but this total amount line appears after every control break. Basically the amount appears every
time the control break changes by date, teacher, or student number.
The extra row I added does contain grouping references to date, teacher, and student number. Thus to solve my problem:
1. Can you tell me how to remove the grouping references to date, teacher, and student number so that the last row will be the only place the total amount will be displayed?
2. If the above is not an option, can you tell me how to add an extra row to the 'main' matrix so the report groupings do not appear on the final total line?
3. If the above 2 choices are not an option, would you tell me how to add the final total line in the final report footer and/or any place you believe the final total amount will appear only one time?
Hi Wendy,
According to your description, you want to add a row into your matrix to get the total value of TransactionAmount. This can be final total value which appears only one time in your matrix. Right?
In this scenario, the reason why the total amount line appears after each break change (data, teacher..) because this total amount line is still within the parent group. I guess you didn't add the outside group row on the top parent group. So we just need
to right click on the textbox which is top parent group, insert a row outside of group. Then put your expression into the added row. Now the total amount will appear only one time in the matrix. It looks like below:
Reference:
Understanding Groups (Report Builder and SSRS)
If you have any feedback on our support, please click
here.
Best Regards,
Simon Hou
Similar Messages
-
Ssrs 2008 r2 display of url value
In an existing SSRS 2008 R2 application, the users will be clicking on url links to access help documents that are in a PDF
format. When the user hovers over the tab in the browser, the actual web url is listed. My company thinks this can be a secruity
problem.
Thus my question in an SSRS 2008 R2 report, is there a way to hide the real link of where the PDF document is located at? Basically is there a way to hide the real url and/or just display a url that does not really exist? If so, can you show me code on how
to accomplish this goal?Hi Wendy,
Based on my test, if we are use below expression, it will not list the URL.
="javascript:void(window.open('http://test1.op.org/ReportServer/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))"
I found a work around for your previous case, please refer to the expression below:
="javascript:void(window.open('” & Globals!ReportServerUrl & “/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))"
If you have any questions, please feel free to let me know.
Regards,
Alisa Tang
If you have any feedback on our support, please click
here.
Alisa Tang
TechNet Community Support -
Can we display only sub totals on the alv grid output
hi,
can we display only the subtotals calculated on the grid display.it should display all the data it shpuld display only the subtotals of it.
if yes can any one please give me the code for
will be awarded with points.Hi Raju
You can do that
When you are doing fieldcatalog,comment ws_fieldcat-do_sum = 'x'.
if you comment that it wont display totals.
use sort
i_sort type slis_alv...
clear ws_sort.
ws_sort1-spos = '1'<position of field>
ws_sort-fieldname = 'matnr'.
ws_sort-up = 'x'.
append ws_sort to i_sort.
pass this i_sort to FM -
Total Amount value not displaying while executing print progrm for PO form.
Hi All,
I created the PO form, for this i written a print program.After executing this print program everything s displaying & populating, but only the Total Amount not displaying r not populating.
But, if i run the PO n tcode ME23N the Total Amount is displaying, after assigning the form n NACE.
So help me to get the Total Amount to be displayed n main window, while executing the print program.
Like this i declared n smartform, Total net value excl. tax &is_ekko-waers& &is_pekko-netwr&......
The print program as follows,
report zpo.
tables: ekko,pekko,ekpo,ekpa,eket,ekkn,ekek,komk,nast.
data: fm_name type rs38l_fnam.
data: is_ekko type standard table of ekko with header line.
data: is_pekko type pekko occurs 0 with header line.
data: it_ekpa like standard table of ekpa,
it_ekpo like standard table of ekpo,
it_pekpo like standard table of pekpo,
it_eket like standard table of eket,
it_tkomv like standard table of komv,
it_ekkn like standard table of ekkn,
it_ekek like standard table of ekek,
it_komk like standard table of komk.
selection-screen: begin of block b1 with frame title text-001.
parameters: pr_ebeln like ekpo-ebeln obligatory.
selection-screen: end of block b1.
select * from ekpo into table it_ekpo where ebeln = pr_ebeln.
select * from ekko into is_ekko where ebeln = pr_ebeln.
endselect.code as follows,
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZPURCHASE'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
FM_NAME = fm_name
CALL FUNCTION fm_name "'/1BCDWB/SF00000060'
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_INDEX_TAB =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
IS_EKKO = is_ekko
IS_PEKKO = is_pekko
* IS_NAST =
* IV_FROM_MEM =
* IV_DRUVO =
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
TABLES
it_ekpo = it_ekpo
it_pekpo = it_pekpo
it_ekkn = it_ekkn
it_ekpa = it_ekpa
it_ekek = it_ekek
it_komk = it_komk
it_eket = it_eket
it_tkomv = it_tkomv.
* EXCEPTIONS
* FORMATTING_ERROR = 1
* INTERNAL_ERROR = 2
* SEND_ERROR = 3
* USER_CANCELED = 4
* OTHERS = 5
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
Write PL/SQL query from SSRS 2008
Hello,
I've need of writing the following statement as query or procedure within SSRS 2008(SQL Server Reporting Services 2008) to query Oracle data.
IF :PARAMETER1 = 1
SELECT A1,B1,C1 FROM TABLE1
INNER JOIN TABLE2 ON TABLE2.X = TABLE1.X
INNER JOIN TABLE3 ON TABLE3.Y = TABLE1.Y
WHERE TABLE1.FIELD1 = :PARAMETER1
ELSE IF :PARAMETER1 = 0
SELECT A1,B1,C1 FROM TABLE1
INNER JOIN TABLE2 ON TABLE2.X = TABLE1.X
WHERE TABLE1.FIELD1 = :PARAMETER1
Can someone please help since I am trying to write query with IF ELSE statement or block from SSRS 2008?
Brief scenario - I'm trying to query data from Oracle db by using Oracle data source connection(11g client) from SSRS 2008 to display on SSRS report.
Thanks,
JS.user1378136 wrote:
Thank you for the tip and sample snippet as you mentioned it may not work, it did not work.
Probable I did not ask the question right way. Let me ask you this. If I were to write SQL or PL/SQL (which ever is required because of IF condition) to query Oracle DB how do I do below mentioned statements,
IF condition = true
do something.....
Else IF condition = false
do something.....
Thank you,
JS.Typically i'd create a function that returns a ref cursor for something like this (on the Oracle database you need to query) and then call that from wherever it is required.
create or replace function get_some_data
p_PARAMETER1 number
return sys_refcursor
is
some_ref_cursor sys_refcursor;
begin
IF p_PARAMETER1 = 1
then
open some_ref_cursor for
SELECT A1,B1,C1 FROM TABLE1
INNER JOIN TABLE2 ON TABLE2.X = TABLE1.X
INNER JOIN TABLE3 ON TABLE3.Y = TABLE1.Y
WHERE TABLE1.FIELD1 = 1;
ELSIF p_PARAMETER1 = 0
then
open some_ref_cursor for for
SELECT A1,B1,C1 FROM TABLE1
INNER JOIN TABLE2 ON TABLE2.X = TABLE1.X
WHERE TABLE1.FIELD1 = 0;
end if;
return some_ref_cursor;
end get_some_data;
/So you'd return a pointer to 1 of 2 queries via this function, and the client would process it accordingly. -
SSRS 2008, have this report
Qty Column --------- Est cost column ----- Mark up Cost Column - Did add Total cost column
4 pcs- $ 2000.00 --------------$ 50.00 --------------- $ 2050.00
Avg Cost
$2050/4= 512.50
how to write this exp to get value $ 512.50
what I did , its not giving me correct result,
=Sum(Fields!estCOSTAMOUNT.Value+Fields!COSTMARKUP.Value)/(Fields!QTY.Value)
can some one please advise what I am doing wrong.
thanks in advanceI tried both exp, did not work
may be I was not clear in the question
Qty Column --------- Est cost column ----- Mark up Cost Column - Did add Total cost column
4 pcs- $ 2000.00 --------------$ 50.00 --------------- $ 2050.00
2 pcs ------------------$ 1500.00 --------------=$100.00 ----------------$1600.00
Total qty 6 pcs-----$ 3500.00------------------$150.00---------------$ 3650.00
Avg Cost
$3650..00/6= 608.33
my field name
=Sum(Fields!COSTAMOUNT.Value) + want to add cost amount and Mark up and divide with qty total
=Sum(Fields!COSTMARKUP.Value)
=Sum(Fields!QTY.Value)
please help how can I write it to get the result -
How to display total amount field in PO layout
Dear All,
I have a query related to Purchase Order Printing.
I copied the standard programme SAPFM06P as ZSAPFM06P. I didn't make any changes to standard program.
I copied the standard layout MEDRUCK as ZMEDRUCK.
I am able to display all the data of PO but I am facing problem in displaying <b>Total Amount</b> field (i.e sum of amount and tax value).
How can we display the Total Amount in the layout without changing the Standard program. I want to make the changes only in ZMEDRUCK for this field.
My main window details are as follows :
MatNo MatDesc Uom Quantity rate amount <b>Total amount</b>
Here I am not able to print Total amount(amount + tax value)
Please help me on this .
Thanks & Regards
RajvinderHi Rajvinder,
u need not be so much against changing the program.. infact it s the best way to get the desired output if its done properly...to be completely safe,wat u can do is insert a subroutine somewhere after the values have been populated in the program n then add these inside the subroutine to get the total in a different variable..in this way ur original data s intact n u can use ur new variable in the script as total..
neways if u dont want to change ur program, then u need to keep these things in mind..
the value of total & tax shud be available at the point of calling the perform from the sapscript so that u can pass those to a new program for addition.
eg :
while writing this in script
:/ perform add in program znew using &total& &tax& changing &final&
before this command u need to make sure that total & tax values r ther to pass to the program..
then u can write a FORM in ur znew to add these two n pass to final..
in sapscript u can then print &final&
Hope it helps,
Regards,
Bikash -
Ssrs 2008 grand totals of report
In an SSRS 2008 report, I am placing a grand total amount in the report footer since I want the amount at the very end of the report.
The problem is when the report is exported to PDF, the amount is a long ways from where the detail lines are located at.
Thus can you tell me how to make the data in the report footer change to be closer to the detail lines?In your report design make sure you remove as much white space as possible from the main body of the report
-
Ssrs 2008 r2 tablix is displaying when visibility is set to hide
In an SSRS 2008 r2 report, I have an existing report that if the grade level is from 01 to 03, one tablix is displayed. If the grade level > 03, the other tablix is displayed.
Now in the tablix for grade levels 01 through 03, I have placed several rectangles onto the tablix for better control of some new textboxes. I have set the property of some of the new textboxes so can not grow and can not shrink. I have not yet placed rectangles
onto the tablix for grade levels > 03.
Currently when I run the report for grade level 04, the tablix for grade levels 01 to 03 does not display. However there is a blank space on the SSRS report where grade levels 01 to 03 would display.
The tablix for grade level 04 does display.
Thus can you tell me what what to check on so the blank space for where tablix for grades 01 to 03 does not display when I want to generate the report for grade 04?Hi wendy,
Based on my research, if we directly hide a tablix, it would only hide the data but the tablix frame is remained. If we hide the tablix with expression, it would be hidden completely. This is by design. In your scenario, it seems that the tablix hide with
expression. So I guess maybe you are using a rectangle contain the tablix, and there are other items in the rectangle. Or there are some space between the tablix and the later items, so there are some blank space on the report when run the report for grade
level 04.
If there are any misunderstanding, please elaborate the issue for further investigation.
Thanks,
Katherine Xiong
If you have any feedback on our support, please click here.
Katherine Xiong
TechNet Community Support -
SSRS 2008 - Vista Security - Header Only
I installed SQL 2008 Developer and Reporting Services on my Vista Ultimate x64 box. The box is a new rebuild and only has drivers and windows updates on it. During the setup of SQL I told it to use my login as the account to run all the SQL services as including Reporting Services. I also used the default configuration for SSRS during the setup.
The problem I am having is everytime open http://<mycomputer>/reports I only see the header. I am almost sure it is a security thing because if I browse to http://<mycomputer>/reports/pages/SystemSecurity.aspx I get a "You do not have permission to access this page".
Another problem is everytime I first load http://<mycomputer>/reports it also asks me to log in. I type in my account information that I am currently logged in as and it lets me in but again I only see the header. I have added http://<mycomputer> as a trusted site while running IE as administrator but it did not help.
Please help, all the google docs I keep finding only apply to SSRS 2005.Here is the final solution. Hopefully this will help some people who try to get Reporting Services for SQL 2008 Developer working on Windows Vista using IE8. To restate, I was having two issues. One was that I was being prompted to log in everytime I went to http://[computername]/reports. The other was that once there I was only seeing the reporting services header. Everything I was experiencing was related to Vista User Access Control (UAC). Here are the steps to get it working WITH UAC ON. Maybe someone can post this to their blog since everything out there seems to relate to SSRS 2005 and/or IE7.
Environment
· Vista Ultimate 64 Bit
· Internet Explorer 8
· SQL Server 2008 Developer with Reporting Services installed
· UAC is on.
Issue
When you browse to http://[ComputerName]/Reports it prompts you to login
Cause
This is caused by UAC. Even if you run Internet Explorer as Administrator, once you log in you are no longer running with administrative privileges.
Resolution 1
1. Open Internet Explorer
2. Click on the "Tools" menu and select "Internet Options"
3. Click on the "Security" tab
4. Click once on "Local intranet"
5. Click on the "Sites" button
6. Click on the "Advanced" button
7. Make sure "Require server verification (https:) for all sites in this zone is unchecked.
8. Add "http://[ ComputerName]" to the Websites list.
9. Click the "Close" button to close the Advanced window.
10. Click the “Custom Level” button near the bottom.
11. Scroll down to the end and you will see the “User Authentication” section.
12. User “User Authentication” and then “Logon” verify that “Automatic logon only in Intranet Zone” is selected. If not select it.
13. Click “OK” to close the Security Settings - Local Intranet Zone window.
14. Click the "OK" button to close the Local intranet window.
15. Click the "OK" button to close the Internet Options Window
16. Close Internet Explorer
17. Re-open Internet Explorer and browse to http://[ ComputerName]/Reports. You should no longer be prompted to login.
Resolution 2
1. Open Internet Explorer
2. Click on the "Tools" menu and select "Internet Options"
3. Click on the "Security" tab
4. Click once on "Trusted sites"
5. Click on the "Sites" button
6. Make sure "Require server verification (https:) for all sites in this zone is unchecked.
7. Add "http://[ComputerName]" to the Websites list.
8. Click the "Close" button to close the Trusted Sites window.
9. You should now be back on the "Security" tab of "Internet Options".
10. Make sure "Trusted Sites" is still selected and click the "Custom Level" button near the bottom.
11. Scroll down to the end and you will see the "User Authentication" section.
12. Under "User Authentication" and then "Logon" select the option that says "Automatic login with current user name and password"/
13. Click "OK" to close the Security Settings - Trusted Sites Zone window.
14. Click the "OK" button to close the Internet Options Window
15. Close Internet Explorer
16. Re-open Internet Explorer and browse to http://[ComputerName]/Reports. You should no longer be prompted to login.
Issue
When you browse to http://[ComputerName]/reports you only see the Report Manager header.
Cause
This is caused by UAC. By default Reporting Services should allow members of the Local Administrators group access to reporting services but with UAC turned On Reporting Services is not recognizing the logged in user as part of the Local Administrators group. You will need to explicitly add your account inside reporting services.
Verification
You can verify this issue by browsing to http://[ComputerName]/ReportServer. You should receive a message that says: The permissions granted to user '[UserLogin]' are insufficient for performing this operation. (rsAccessDenied).
Resolution
1. Open Internet Explorer in Administrator mode by right clicking on the IE icon and selecting "Run as administrator".
2. Browse to http://[ComputerName]/Reports
3. On the home page click on the "Properties" tab
4. Click on "New Role Assignment"
5. Add your qualified local login as a Content Manger (for example: [ComputerName]\[LoginName] or [Domain]\[LoginName])
6. Next in the upper right click on "Site Settings"
7. On the left menu select "Security"
8. Click on "New Role Assignment"
9. Add your qualified local login as a System Administrator (for example: [ComputerName]\[LoginName] or [Domain]\[LoginName])
10. Close Internet Explorer and open normally
11. Browse to http://[ComputerName]/Reports and you should be working properly -
ALV: how to display only subtotals and total rows in the output
ALV: how to display only subtotals and total rows in the output
i am getting output
i am getting subtotals for respective fields
but i want to display only subtotals and totals rows in the output
i have tried the
totals_only parameter in slis_layout_alv
but it is not working.hi,
For TOTAL
For the amount field / quantity field in the field catalog give DO_SUM = 'X' for WHOLE total
For SUBTOTAL
For subtotal you will have to create an internal table sort..Let's say you want to do subtotal for each customer..
DATA: lt_sort type SLIS_T_SORTINFO_ALV,
ls_sort type slis_sortinfo_alv.
CLEAR ls_sort.
ls_sort-spos = 1.
ls_sort-fieldname = 'Give the field name that you do the sum'.
ls_sort-up = 'X'.
ls_sort-subtot = 'X'.
APPEND ls_sort TO lt_sort.
fieldcatalog-do_dum = 'X'.
for subtotals
WA_SORT-FIELDNAME = 'ERSDA'.
WA_SORT-SPOS = '2'.
WA_SORT-UP = 'X'.
WA_SORT-SUBTOTAL = 'X'.
APPEND WA_SORT TO IT_SORT.
Refer
http://help.sap.com/saphelp_erp2004/helpdata/en/ee/c8e056d52611d2b468006094192fe3/content.htm
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/doesnt-function-event-subtotal_text-in-alv-713787
regards,
Prabhu
reward if it is helpful -
Script total in only final page
Hi
I am working on scripts.
Output i am having 4 pages, i don't want the totals for each page and also no of lines.
<b>How to display totals, in only Final page.</b>
Rgds
ChinnaHello,
Ur qeury is not clear.
If u want print the total in 4th page.
Write condition as follows,
if &page& = 4.
total
endif.
Let me know if I am not clear.
Regards -
Hello,
i need to make a query that i want to show as a graph. But in the query there 's only the total i need to show and not all the details.
Is there a way in a query to show only total or in a graph to use only the total of the corresponding query ?
Thank's
ThierryThank for your answer.
But i can't elimitate all characteristics from drilldown. I need to make a subtotal before calculating final result. The characteristic is set with the 'No display' property.
I show the detail (only kf) for each value of characteristic.
Thierry -
How to put Total Amount only on the section last page?
I have been working on oracle purchasing report. I have used <?for-each@section:G_HEADERS?>. So report is paged based on new PO number. However, I have put a total amount on footer section. If the report with one specific PO number haas more than one page, for example, total page as 3, I'd like total field shows "Continued" on page 1 and 2, only list the total number on page 3. Does anyone know how to do that? The logic will be something like:
if (currentPageNum < sectionTotalPage), then 'Continued', else <?TOTALAMT?>. However, I don't know how I can get currentPageNum and how to get sectionTotalPage.
Edited by: user638845 on Apr 20, 2010 12:38 PM
Edited by: user638845 on Apr 20, 2010 12:47 PMHello,
thank you for your reply, but the situatiation is the following:
I have a dynamic form with two tabels, both of them are included into two separated subforms. And because I do not know how many lines will have each of them I have no clue how to force Designer to display the footer (or any object) at the very buttom on the last page only. I already included the footer into separated subform before I asked the question, but the problem is, that the footer is not displayed at the very buttom of the page, but directly behind the second tabel (subform). So it can happen that the second tabel will end at the top of the last page, it can have only 5 lines on the last page and in this case the footer will be displayed at the top or in the middle of the last page, not at the very buttom. This is my problem.
Thank you once again for any suggestions.
Best regards,
Jan Zahradnicek -
SSRS 2008 R2 Report - Sum Totals of a Filtered Group
I'm at a loss here, so any help will me much appreciated. I will do my best to explain, but if you need additional information, please let me know:
I have a very large dataset of patient data. Specifically for the numbers I need, I have a patient number field, a county field, a 1 or 0 for LastYear field, and a 1 or 0 for CurrentYear field.
Example:
PtNo County PY CY
45676 Scott 0 1
45322 Cape 1 0
47686 North 0 1
The thing I am shooting for on my report is, "Volume growth in 3 counties (+20 cases)."
I created a group and grouped by County (group name County) and I included a group filter to only include "total cases of CY" are greater than "total cases of PY" to narrow my data to only counties that had a higher current year sum
than previous year sum.
Example:
County PY CY Difference
Scott 141 143 2
Cape 90 98 8
North 78 88 10
All is working well, except I don't need to see the Counties themselves, I just need the 3 counties and a difference of 20.
I explored online and found tutorials that said to right click on the field and select "Add Total" but this total did not have my filter in it and gave me everyone. I also tried adding a row outside the group and used the RunningValue function
(i.e. RunningValue(Fields!FYTD_Current_Year.Value, Sum, "County")) but it gave me a message that states "The Value expression for the text box 'Textbox456' has a scope parameter that is not valid for an aggregate function. The scope
parameter must be set to a string constant that is equal to either the name of a containing data region or the name of a dataset."
When I move the row with the RunningValue function inside the group, it runs but I get the same information repeated twice for each county with no final total.
So I am not sure how to go about getting my values I need for my report. Anybody know how to resolve this?
Thanks,
Cyndi
cpemtp1Hi Cyndi,
Based on my understanding, you specify a filter condition in group properties. Then you want to sum the filtered values for each field.
In this scenario, we need to specify a filter condition on group level. If we use sum() function out of group, the expression will calculate the total values on dataset level instead of group level. So we can’t simply use expression to achieve this goal.
However, we can use custom code to record the filtered values for each field, then we can calculate the total based on these values. Please refer to the steps and screenshots below:
1. Add the custom code below into the report:
Public Shared Value1 as Integer=0
Public Shared Function GetValue1(Item as Integer) as Integer
value1= value1 + Item
return Item
End Function
Public Shared Function GetTotal1()
return value1
End Function
Public Shared Value2 as Integer=0
Public Shared Function GetValue2(Item as Integer) as Integer
value2= value2 + Item
return Item
End Function
Public Shared Function GetTotal2()
return value2
End Function
2. Design the tablix like below:
3. The result looks like below:
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Maybe you are looking for
-
I put my ipod in the pocket in the back of my jeans and when i went to the washroom, it fell into the toilet... I immediatey took it and dried it with a hairdryer and then a few hours after.. it was able to reopen again, but im unable to join my netw
-
Game center account not working on multiple devices.
My game center account works fine on my iPad 2, but when I log in on my 3GS (after logging out on my iPad 2) my iPhone can't receive invites and invites that I send do not work when the other player accepts them, it just says "waiting" . All of my pu
-
ITunes 11 media controls are not working on Windows 8.1 and more.
The iTunes team might be distracted or something...
-
Find no of week in a month of particular date in crystal report
dear sir i have to find out the *no of week in a particular month against the particular date in crystal report* . i am trying this formula but it will give me a no of week from january .but i want the week no of that date only in my report.pls assum
-
Save for web as aninatwd gif, text does s keep true color
Save for web as animated gif, text does not keep true color in Photoshop