I was wondering if it's possible to display a report, but export an expanded version of that report? For instance if I have a report with, say, 6 columns, when the user exports to Excel I want to export 12 columns (6 that were displayed plus 6 additional columns). I tried hiding the additional columns, but they're also hidden in the export. I ended-up creating a separate report all together for exporting, but this is confusing to the user. Is something like this even possible?
Unfortunately renderer-specific formatting adjustments are not supported. You will probably need to construct two versions of the same report (one with the extra columns) and instruct your users to use the appropriate one for the output format.Thursday, March 29, 2012
Tuesday, March 27, 2012
Dynamic report
How can I got dynamic report? My question is: the report did not
automatically show a refreshed version of report unless you manully clicke
refresh button
Thanks in advance!
SandraReport has AutoRefresh property that you can set in report designer.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"tony" <itdong@.hotmail.com> wrote in message
news:#kMTyqIYFHA.3032@.TK2MSFTNGP10.phx.gbl...
> Hello,
> How can I got dynamic report? My question is: the report did not
> automatically show a refreshed version of report unless you manully
clicke
> refresh button
> Thanks in advance!
> Sandra
>
Wednesday, March 21, 2012
Dynamic Message Box In Report
I m working in Microsoft SQL Server Analysis Services Designer
Version 9.00.1399.00 for creating reports .
Now, I m facing a problem to view a run time dialog box at time of my report.
Means ,
In my report procedure , i have fired 2 delete queries after firing of these queries i wanna show a message box with Message "Some Records are Deleted". and one Ok Button !!
and after showing this dialog box i wanna view my report output !!
The procedure of my report is :
--
create procedure MyTemp
as
-- Query1
delete from myTempTable1 where Id = 5
-- Query2
delete from myTempTable2 where Id = 10
-- After exectuing above two queries Query1 and Query2.
-- here i want to view amessage dialog box with message "Some Records are Deleted"
select Id, name from myTempTable1,myTempTable2
--
So, how can i do this !!
I will change in my proceudre or report !!
Please suggest me about solution of this problem .
If u dont have any solution regaring this then please suggest me where i will get
the solution of this problem .
There is no messagebox in reporting services. Yout will have to give the results back as a dataset and render it in the report if your want to display it.
Jens K. Suessmeyer
http://www.sqlserver2005.de
Sunday, March 11, 2012
Dynamic formulas driven by table
This is a very slimmed down version of what I'm doing, but I believe it
is enough to get my question resolved.
Here is my layout.
These 4 tables are used to generate a questionaire.
Survey OrderID
========= ==========
SurveyID OrderID
OrderID QuestionGrpID
QGrp Questions
============= =============
QuestionGrpID QuestionID
QuestionID QuestionText
The following two tables are used to calculate a report that is sent to
the customer.
RawData
=========================
OrderID
QuestionID
Value is string but is Cast as decimal for numeric formulas
Metrics
==============================================
QuestionGroupID | ReportText | Formula | MetID
==============================================
2 | % Support Staff of Total | OP21/(OP21+OP22+OP23) | 1
The OP references are questionIDs
Now to calculate the result for the report we programatically parse the
formula creating a temp table (table name = Temp & orderID & _ &
QuestionID) with OrderID and OPxx as the field names. We create one
table for each question.
We then use dynamic SQL again to calculate the result using the above
formula
SELECT OP21/(OP21+OP22+OP23) FROM Temp5_21, Temp5_22, Temp5_23 WHERE
Temp5_21.OrderID = Temp5_22.orderID AND Temp5_22.OrderID =
Temp5_23.OrderID
This select is used to create a single table of calculated values.
This table is in turn used to tell the customer how they compare to
other customers. Percentile, Mean, Median, Std Dev, and a few others. I
don't claim this part of the project, but I'm not sure how I might have
done it, had it been assigned to me.
MY PROBLEM!!!
Sometimes a 0 is valid data and is the denominator of a devision
calculation. Since this is so dynamic and it might be difficult to
determine when division is used. I need a way to default divide by 0
execptions to NULL. This DB is on a hosted server.
Thanks for bearing with me,
Greg Kelley"yzarc" <yzarcman@.gmail.com> wrote in message
news:1105629819.876049.179950@.c13g2000cwb.googlegr oups.com...
> I'm working with a DB design that seems to me to be rather complex.
> This is a very slimmed down version of what I'm doing, but I believe it
> is enough to get my question resolved.
> Here is my layout.
> These 4 tables are used to generate a questionaire.
> Survey OrderID
> ========= ==========
> SurveyID OrderID
> OrderID QuestionGrpID
> QGrp Questions
> ============= =============
> QuestionGrpID QuestionID
> QuestionID QuestionText
>
> The following two tables are used to calculate a report that is sent to
> the customer.
> RawData
> =========================
> OrderID
> QuestionID
> Value is string but is Cast as decimal for numeric formulas
>
> Metrics
> ==============================================
> QuestionGroupID | ReportText | Formula | MetID
> ==============================================
> 2 | % Support Staff of Total | OP21/(OP21+OP22+OP23) | 1
> The OP references are questionIDs
> Now to calculate the result for the report we programatically parse the
> formula creating a temp table (table name = Temp & orderID & _ &
> QuestionID) with OrderID and OPxx as the field names. We create one
> table for each question.
> We then use dynamic SQL again to calculate the result using the above
> formula
> SELECT OP21/(OP21+OP22+OP23) FROM Temp5_21, Temp5_22, Temp5_23 WHERE
> Temp5_21.OrderID = Temp5_22.orderID AND Temp5_22.OrderID =
> Temp5_23.OrderID
> This select is used to create a single table of calculated values.
> This table is in turn used to tell the customer how they compare to
> other customers. Percentile, Mean, Median, Std Dev, and a few others. I
> don't claim this part of the project, but I'm not sure how I might have
> done it, had it been assigned to me.
> MY PROBLEM!!!
> Sometimes a 0 is valid data and is the denominator of a devision
> calculation. Since this is so dynamic and it might be difficult to
> determine when division is used. I need a way to default divide by 0
> execptions to NULL. This DB is on a hosted server.
> Thanks for bearing with me,
> Greg Kelley
Check out SET ANSI_WARNINGS, SET ARITHABORT and "Behavior if Both ARITHABORT
and ARITHIGNORE Are Set ON" in Books Online - this will do what you want.
But, it's not a recommended solution, because it means you can't use
features like distributed queries and indexed views, and it may create
problems with other code.
Alternatively, you might be able to store your formulae with a NULLIF around
the divisor:
OP21/NULLIF((OP21+OP22+OP23), 0)
If that's not possible, and you can't be sure what the divisor will be, then
you would probably have to look at solving it outside the database, either
by parsing the formulae to insert a NULLIF dynamically, or perhaps by doing
some calculations externally.
Simon|||Thanks,
I appreciate the reply. I'm using a fairly basic parser to divide the
OP codes out and creat the table. I may look at tagging the OP codes so
that I can strip anything out that is not an OP code for creating my
tables.
Thanks again,
Greg