Not sure what I did wrong to this code. What I would like this code to produce is, if any number is less than 0 (negative) than it should be red, if it's greater than 0, it should be black. Somehow it comes back red even though it's a positive number.
For the life of me, I can't find how to change the color of the bar in a bar chart.
It seems like it would be a simple thing, but I can't find anything in the properties that seems to relate to it.
I have a bar chart with subtype as "bar chart" -- i.e., just a bar for each data point, either positive or negative. The positive should be blue; the negative red. As it is now, the default color for positive is blue, for negative green, but management does not like that color combo.
I am having a problem setting the colors of the bars in a bar chart. It seems like it would be the simplest thing, but apparently it's not.
The "series" is grouped on whether or not the value is positive -- if so, the bars are blue (by default) and if not, green (by default). I want to change it so the positive color is blue and the negative color is red.
I found that I can change ALL the bars to one color by going to chart properties, Data tab, Values Edit, Appearance tab, Series Style, Fill. There I set the color to red and ALL the bars became red. But this is not what I want.
I tried using a conditional statement like IIf(Fields!IsPositive.Value=True,Blue,Red) for the color, but (not surprisingly), it told me I hadn't defined Blue and Red.
I have a report I am creating in sql reporting services 2005 and what I am trying to do is have a single text box with multiple lines of data format each item in the textbox to specific parameters but I have not been able to figure it out. I tried to format my data on the sql side so that it cam out as follows:
tried Monday, Nov. 26, 2007 "Color = Blue FontWeight = Bold " & John Doe & CHAR(9) & "Color = Red FontWeight = Normal " & Jane Smith & CHAR(9) & "Color = Black FontWeight = Bold" John Roberts This did not work
so then I tried Monday, Nov. 26, 2007 "FontColor = Blue FontWeight = Bold " & John Doe & CHAR(9) & "FontColor = Red FontWeight = Normal " & Jane Smith & CHAR(9) & "FontColor = Black FontWeight = Bold" John Roberts
Still did not work What my end result needs to be in a single text box... Monday, Nov. 26, 2007 John Doe Jane Smith John Roberts
If anyone has the answer thanks ahead of time. Mike
Hi Everyone, I am trying to change the select statement of an sqldatasource if a check box is checked. I am using the SqlDataSourceSelectingEventArgs but i can't get it to work, anyone got any pointers? Code BehindProtected Sub LocMan_Searching(ByVal sender As Object, ByVal e As SqlDataSourceSelectingEventArgs) Handles LocManSearch.Selecting If cb_Today.Checked = True ThenLocManSearch.SelectCommand = "SELECT * FROM [LocMan_CV] WHERE ([area] LIKE '%' + " & dd_Area.SelectedValue.ToString() & "+ '%') AND [available] LIKE '%' + " & Date.Today & "+ '%')"
Else : LocManSearch.SelectCommand = "SELECT * FROM [LocMan_CV] WHERE ([area] LIKE '%' + " & dd_Area.SelectedValue.ToString() & " + '%')" End If End Sub My SQLDATSOURCE <asp:SqlDataSource ID="LocManSearch" runat="server" ConnectionString="<%$ ConnectionStrings:MYLOCDEVConnectionString %>" > <SelectParameters> <asp:ControlParameter ControlID="dd_Area" Name="area" PropertyName="SelectedValue" Type="String" /> </SelectParameters> </asp:SqlDataSource>
I have a stored procedure with a SELECT statement, that retrieves 1 row. SELECT name FROM tblNames WHERE nameID = "1" I want all the NULL values in that row to be change in some default values. How do I do this?
I want to create a rdlc-based-report, which shows only a limited number of rows in its table or/and its groupings. For of several reasons I don't want to change the sql statement. Is there a possibility for configurate this inside the rdlc file?
i want to be able to realize reports like this: show the three best sellers of every department of a company (grouping for company)
Hi everyone, I am trying to get this to work, but I know its all screwed up. I want Fields!PERCENT_OF_STD.Value to display red if its less than 100% or greater than 200%. If its neither, then just be plain black. This is what I came up with:
I know that you can make an expression that will make it one color if a certain condition is met and a different one if it is not but is there anyway to make it so that if a number is less than another it's one color, if it's greater it's a different color and if they're equal it's a third color? Thanks for the help.
Can anyone tell me how can i make a column chart bar in two different colors.. acutally i have different teams in a table and each team as assigna a traget to achieve.. i want to present that each team in the chart with their column bar... but as i have two field target and achieved.. so i want a single bar wihich will be into two color Target and achive..
| | | | --- This is total Target | | | | | | --- This much they have achieve.... |___________ |__________|
I have matrix in my report with row grouping on Grouptitle,SaleType and column grouping on dates.. Duration of report is 1 week. for the row having gray color in total column I want all other column except total to be in gray. these rows has value only in total column. i am using following formula to get this.
=iif((Fields!MetricName.Value = "CLIENT (Type 1)"
or First(Fields!MetricName.Value) = "CLIENT (Type 2)"
or First(Fields!MetricName.Value) = "CLIENT (Type 3)"
or First(Fields!MetricName.Value) = "EFG"
or First(Fields!MetricName.Value) = "IJK"
or First(Fields!MetricName.Value) = "LMN"
or First(Fields!MetricName.Value) = "ABC/MNO $")
,"Gray","#ddebee" ) i am doing total in my stored proc as i have some row with % vlaue also. indicator for total field is '1/1/9999' value in date field.
My line chart displays all lines in a single color (the series color). I'd like a single color per item in the series just like the bar chart. Is there a way to change this? Or is the only differentiation the markers?
I am trying to do something where I say look through the row. When you come across the word "Start" color that box green and color all other boxes to the right in that row green as well until you come upon the word "stop". Is this possible? If I am not making sense just let me know and I will try to explain better. Thanks in advance for any help that I get.