I use the below scope statement to bold Measure Values. Is there a way to make the corresponding row labels bold as well?
Scope ([Reports].[Income Statement].Members);
// Bold Font for Report Items //
FONT_FLAGS(THIS) = IIF([Reports].[Income Statement].CurrentMember IS [Reports].[Income Statement].&[Total Sales],1,0);
FORMAT_STRING(THIS) = IIF([Reports].[Income Statement].CurrentMember IS [Reports].[Income Statement].&[Variable Margin],"#,##0.00 %;-#,##0.00 %","#,##0.00;(#,##0.00)");
End Scope;
This is how it looks in excel. Only measure value is in bold and I need Row Label "Total Sales" in bold font as well.
Excel Output
Related
I have multiple vba filters I need to apply to my sql query. Column yellow is the column I want to alter with filters. I have more filters but this is the outline. Column roi has to change every time new average is applied to column yellow. Because formula for roi is
ROUND(((col_az*0.7-1.4-6-5-yellow) / NULLIF((yellow),0)*100),0)
Apply filter to f_n_s = 'yes' and roi < 10
Every visible row in yellow must have the formula AVERAGE(max1,max2)
Every visible row in yellow must have the formula AVERAGE(max1,max2,max3)
Every visible row in yellow must be max5
SELECT *,
CASE
WHEN f_n_s IN ('yes') AND roi < 10 THEN ROUND(((max1+max2)/2),2)
END as yellow
FROM
[Subqueries]
This is what I do but I can't add the other filters. I don't even know if it's doable.
I don't understand how yellow is a function of roi, but roi is a function of yellow; isn't that a circular reference?
I'm trying to calculate a cell base on a cell which is conditionally formatted.
I've use IF statement to calculate the price per box if the ICO (ICO is our term for average order per 3 months) is Conditionally formatted (I use gray color and bold it to diplay that it is in Case and not per piece) , if it's not bold the cell must calculate the price per piece. I've tried using the VBA that returns the value True or False if the selected cell is conditionally formatted even if the condition is not met. You have any idea how to display true or false if the condition is met by the cell?
I try to put in SSRS in a chart bar a target line and a baseline. I add in my chart with stripline a target line. But I would like to show it like this:
The chart1 is the chart which I would create in SSRS. And the chart2 is the chart which I create in SSRS. How can I add only one bar at the beginning of the chart.
I assume there is a parameter or equivalent identifying where the Baseline should be (even if it is the current date)
If so, you can have the baseline series to only display a value for the column you want to set as the baseline.
In this example I have a number of students, and want to display a baseline column where the student name is Student1
Add a new series to the chart, and set the expression to be
=iif(Fields!Student.Value = "Student1", Sum(Fields!Val.Value), 0)
This will mean that it will only return a value when the column is for Student1, otherwise it will return zero.
Conversely, you could set the other columns to be values except for when they are Student1 as follows
=iif(Fields!Student.Value <> "Student1", Sum(Fields!Val.Value), 0)
Using a Stacked Column chart for these series would give this output
Alternatively, you could use dates for the X axis, and use a parameter to set the date for the baseline, and use a expression such as this to identify the baseline column
=iif(Fields!myXAxisDate.Value = Parameters!myBaselineDate.Value, Sum(Fields!mYValue.Value), 0)
Hopefully this will assist you. Please let me know if you have further questions on this.
I've a tablix with alot of rows.
I use =Fields!LedningLaengde.Value to set the value in the cell, that's on a row in the Tablix..
The new thing, is that the font need to be red if =Fields!LedningLaengde.Value is equal to -1 how can this be done?
For the Color property of the cell, use the following formula:
=IIF(Fields!LedningLaengde.Value = -1, "Red", "Black")
I have an expression in place in my report to change the cell color if the value of the cell is above a certain threshold. It's just an expression setup in my text box called "percent" - on the background color property. Looks like this:
=IIf((FormatPercent(Sum(Fields!items.Value)/First(Fields!totalItems.Value),2) >= .04 & "%"
And First(Fields!errorCodeAdjType.Value) = "Error1")
Or (FormatPercent(Sum(Fields!items.Value)/First(Fields!totalItems.Value),2) >= .02 & "%"
And First(Fields!errorCodeAdjType.Value) = "Error2")
,
"Maroon", "Transparent")
It works as I want it to; however, it is also changing color of my subtotal cells. How can i write this better to make sure it doesn't think that one of my subtotal cells meets the cell color criteria? Thanks!
You can set the background property individually for different cells. Sounds like you've defined this for multiple cells. Clear the BackgroundColor property for the cells that are in the subtotal row.
If you don't have a separate subtotal row defined in the report, then you'll need to add a condition that can distinguish subtotal rows from detail rows. I strongly recommend that you create the subtotals by using SSRS groups, not as subtotal rows included in the query. That is, avoid WITH ROLLUP.