Monday, March 26, 2012
Infinity
evaluated are the same the report displays Infinity as the answer rather than
100%. Anyone have any ideas how to have it read 100%?Please show your code which does the calculation
--
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"jvjones" <jvjones@.discussions.microsoft.com> wrote in message
news:9E50B2E2-0B94-4F3A-B65C-224950FAB597@.microsoft.com...
>I have a calculation to determine percentage. When the two values that are
> evaluated are the same the report displays Infinity as the answer rather
> than
> 100%. Anyone have any ideas how to have it read 100%?
Friday, March 23, 2012
Indicating the NULL value in Report Expression Syntax
I would like to know how I can indicate a NULL value in a report expression in SSRS / Report Designer.
I am trying to code :
IIF(Value_A = 0, <NULL>, Value_A)
It may look weird but I am trying to return NULL values when Value_A is 0 (zero), in the sample scenario above.
I have tried using the keyword "NULL", but it is highlighted as a syntax error, and suggested to use System.DBNull. I tried it and then it says that components of the System collection cannot be used in an expression, so I am left drawing blanks.
Thanks.
regards,
Kenny
Use the VB keyword "Nothing"
=Iif(Fields!Value_A.Value = 0, Nothing, Fields!Value_A.Value)
|||Hi Adam,Thanks for the tip. Worked like a charm.
Where else can I get a list of VB keywords I can use in Report Designer / SSRS / SQL Server 2005. I have some background with VB6 prior and was hoping I could port a whole bunch of them over to be used here.
Kenny
|||Most global functions were ported to VB.NET and that's what's supported in RS. For more details about RS expressions and the functions start from here http://msdn2.microsoft.com/en-us/library/ms159238.aspx
Wednesday, March 21, 2012
Indicating the NULL value in Report Expression Syntax
I would like to know how I can indicate a NULL value in a report expression in SSRS / Report Designer.
I am trying to code :
IIF(Value_A = 0, <NULL>, Value_A)
It may look weird but I am trying to return NULL values when Value_A is 0 (zero), in the sample scenario above.
I have tried using the keyword "NULL", but it is highlighted as a syntax error, and suggested to use System.DBNull. I tried it and then it says that components of the System collection cannot be used in an expression, so I am left drawing blanks.
Thanks.
regards,
Kenny
Use the VB keyword "Nothing"
=Iif(Fields!Value_A.Value = 0, Nothing, Fields!Value_A.Value)
|||Hi Adam,Thanks for the tip. Worked like a charm.
Where else can I get a list of VB keywords I can use in Report Designer / SSRS / SQL Server 2005. I have some background with VB6 prior and was hoping I could port a whole bunch of them over to be used here.
Kenny
|||Most global functions were ported to VB.NET and that's what's supported in RS. For more details about RS expressions and the functions start from here http://msdn2.microsoft.com/en-us/library/ms159238.aspx
Indian language kannada not exporting as PDF
We are devloping reports in the regional language. When we create a report
for the indian language kannada we are not able to see the text we are only
seeing "?" . Our OS is Windows XP and when we export reports to tiff format
we are able to see the kannada characters.
can you helpTo start with, make sure that exact font is available on both the server and
all the clients that attempt to view the PDF file. We do not embed the
fonts into the PDF documents.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Srini" <Srini@.discussions.microsoft.com> wrote in message
news:E7A0B237-BF36-4228-86BB-C20D00A9DCD0@.microsoft.com...
> Hi all,
> We are devloping reports in the regional language. When we create a report
> for the indian language kannada we are not able to see the text we are
> only
> seeing "?" . Our OS is Windows XP and when we export reports to tiff
> format
> we are able to see the kannada characters.
> can you help
Indexing table-valued function?
I am using a multi-statement table-valued function to assemble data from several tables and views for a report. To do this, I INSERT data into the first few columns and then use UPDATEs to put data additional data into each row. Each UPDATE uses a WHERE criteria that identifies a unique row, based on the value of the first few columns.
The problem I'm having is that the UPDATEs are taking forever to execute. I believe the reason is that the temporary table that's created for the function is not indexed, so each row update requires a complete search of several columns.
In other situations I've been able to define one column as a primary key for the temporary table, but in this situation the primary key would have to consist of four columns, which doesn't seem to be allowed in the table definition for the function.
Is there any way to create indexes for the temporary tables that are created for multistatement table-valued functions? I think that would improve the UPDATE performance dramatically.
Thanks,
Lee Silverman
JackRabbit Sports
-Is it not possible to insert the data with one sql statement that would join all the needed tables together?
-Yes, temporary tables can be indexed just like regular tables.
Code Snippet
create unique clustered idex [IX_TestIndex] on #TmpTable (colA, colB, colC, colD)