Wednesday, March 28, 2012
How to Insert baseline in Line Chart
I need insert two baselines in a line chart, like WARNING (80%) and CRITICAL
(90 %).
I´m using Series, and the labels WARNING and CRITICAL are repreating with
each series label, if I use this twou baselines with data values.
So, how can I plot only the baselines, without this labels aprears in the
legend with series?
Tks,
Dennis MilanDennis, have you found a solution to this problem? I'm trying to do the same
thing.
"Dennis Milan" wrote:
> Hi,
> I need insert two baselines in a line chart, like WARNING (80%) and CRITICAL
> (90 %).
> I´m using Series, and the labels WARNING and CRITICAL are repreating with
> each series label, if I use this twou baselines with data values.
> So, how can I plot only the baselines, without this labels aprears in the
> legend with series?
> Tks,
> Dennis Milan|||Have you tried inserting a fake, baseline column in your query with
the data you desire? Seems like that would work just fine and you can
format that data item independently so it looks like a baseline. Maybe
you need more than that, but it's bound to be *a* way to do it.|||That's certainly a possibility. I was able to accomplish what I needed by
getting creative w/ my stored procedure.
"Jerry Nixon" wrote:
> Have you tried inserting a fake, baseline column in your query with
> the data you desire? Seems like that would work just fine and you can
> format that data item independently so it looks like a baseline. Maybe
> you need more than that, but it's bound to be *a* way to do it.
>|||Jerry/Rodney,
Tks for help, but if I insert a fake column named 'WARNING', this label will
repeat each series group legend, like:
SERIES 1 - TOTAL
SERIES 1 - WARNING
SERIES 2 - TOTAL
SERIES 2 - WARNING
etc
So, do you have another idea to show only the series group labels in the
legend ?
"Rodney Organ" wrote:
> That's certainly a possibility. I was able to accomplish what I needed by
> getting creative w/ my stored procedure.
> "Jerry Nixon" wrote:
> > Have you tried inserting a fake, baseline column in your query with
> > the data you desire? Seems like that would work just fine and you can
> > format that data item independently so it looks like a baseline. Maybe
> > you need more than that, but it's bound to be *a* way to do it.
> >
Friday, March 23, 2012
How to increment a field for a Line Number?
DocNum LineNum
1 1
2 1
2 2
3 1
4 1
4 2
4 3
Any ideas?
I am tring to do is in MS SQL Server
Quote:
Originally Posted by TrentC
Hi I am trying to work out how to automatically create a line number based up values in another column. For example:
DocNum LineNum
1 1
2 1
2 2
3 1
4 1
4 2
4 3
Any ideas?
I am tring to do is in MS SQL Server
HI ,
Can you tell me clearly.please send how you tried it|||What is the relationship between the two columns ?
I don't think SQL Server 2000 will allow you to use the result of a Stored/Procedure / User Defined Function as the default value for a column.
SQL Server 2005 might.|||Thanks. Here is what I have tried but my SQL is very rusty and I havent really dealt with triggers before. There is no relationship between the columns except that they are both in same table.
Alter trigger UpdateLineNumber
ON [F47012-IntegrationTable]
AFTER INSERT
AS
DECLARE@.LineNum INT
BEGIN
SELECT @.LineNum = COUNT(*) + 1
FROM [F47012-IntegrationTable]
WHERE Document_Number = (SELECT Document_Number FROM Inserted)
UPDATE [F47012-IntegrationTable]
SET Line_Number = @.LineNum
WHERE Document_Number = (SELECT Document_Number FROM Inserted)
AND Line_Number IS NULL
END|||
Quote:
Originally Posted by TrentC
Thanks. Here is what I have tried but my SQL is very rusty and I havent really dealt with triggers before. There is no relationship between the columns except that they are both in same table.
Alter trigger UpdateLineNumber
ON [F47012-IntegrationTable]
AFTER INSERT
AS
DECLARE@.LineNum INT
BEGIN
SELECT @.LineNum = COUNT(*) + 1
FROM [F47012-IntegrationTable]
WHERE Document_Number = (SELECT Document_Number FROM Inserted)
UPDATE [F47012-IntegrationTable]
SET Line_Number = @.LineNum
WHERE Document_Number = (SELECT Document_Number FROM Inserted)
AND Line_Number IS NULL
END
It looks like you are trying to replicate the functionality of an identity column.
Unless the value in your line_number column is directly related to the information in that record just make your line_number column an int column with identity turned on and seed at +1.|||
Quote:
Originally Posted by TrentC
Hi I am trying to work out how to automatically create a line number based up values in another column. For example:
DocNum LineNum
1 1
2 1
2 2
3 1
4 1
4 2
4 3
Any ideas?
I am tring to do is in MS SQL Server
Hi,
I recently had to do the same thing, if your table has an identity column (i.e. primary key that is incremented automatically when you insert a new row), which all tables should, then you can use the following method:
First of all insert all your DocNum records into the table so that the identity column (ID say) is updated automatically. Then update the LineNum field as follows:
UPDATE
[TABLE_NAME]
SET
LineNum = (SELECT
COUNT(*)
FROM
[TABLE_NAME] t1
WHERE
t1.ID <= [TABLE_NAME].ID
AND
t1.DocNum = [TABLE_NAME].DocNum
)
Wednesday, March 7, 2012
How to implement special text format in MSRS?
Our team need to implement the following text format in MSRS:
1. Text Wrap
We need to wrap the text at the end of the line in these 3 ways.
1) HARDWRAP: Hardwrap of overflow text.
2) TRUNCATE: Truncates letters based on column width.
3) WORDWRAP: Wraps words to the next line.
2.Text capitalization
We need to specify capitalization rules for the text in a column.
1) INITCAP: Capitalizes the initial letter of the text.
2) LOWERCASE: Displays text in lowercase letters.
3) UPPERCASE: Displays text in uppercase letters.
Does MSRS support all these? So far, we have no idea how to implement it, hope some one can help.
Thanks a lot!
Ring
^I have the same question too as I would love to have a INITCAP function to use instead of Custom code
How to implement special text format in MSRS?
Our team need to implement the following text format in MSRS:
1. Text Wrap
We need to wrap the text at the end of the line in these 3 ways.
1) HARDWRAP: Hardwrap of overflow text.
2) TRUNCATE: Truncates letters based on column width.
3) WORDWRAP: Wraps words to the next line.
2.Text capitalization
We need to specify capitalization rules for the text in a column.
1) INITCAP: Capitalizes the initial letter of the text.
2) LOWERCASE: Displays text in lowercase letters.
3) UPPERCASE: Displays text in uppercase letters.
Does MSRS support all these? So far, we have no idea how to implement it, hope some one can help.
Thanks a lot!
Ring
^I have the same question too as I would love to have a INITCAP function to use instead of Custom code