Conditional format to Pivot Table won't allow me to apply to the Row Labels column. Range won't allow C1 (A) - pivot-table

If I'm in the rule manager and either select the Row Labels column (col1 aka colA) or manually change it, the Applies To range automatically goes back to only including the value columns. Is there any way to apply a format to the text label? My formula is looking for specific text. The value columns are formatting correctly.

Related

Conditional Formatting on specific columns in pivot table v2 chart in Apache Superset

I wanted to know if there's any way I can apply conditional formatting(coloring) on specific columns in Pivot Table v2 chart in Apache Superset.
Tried:
In pivot table v2 chart when I try to apply formatting/coloring of data it applies on every column of the table in superset application.
Expected:
For example: In superset application I have a pivot table say with columns total orders, canceled orders, allocated orders and i want to apply coloring/formatting on total orders column only. So the total orders column data will only be displayed in colored format.
I am not sure this is possible in pivot tables (without customizing it in anyway, that is)
Since a pivot table shows the same metric (grouped on the basis of 2 or more columns), it might not make sense to show formatting on only one column.
If your pivot table is grouping by only two columns, you might try creating a table that shows the same data as your pivot table. And since you can write HTML in tables, you might be able to color only the column you need

OBIEE Characteristic Table with dynamic header

I have original data as shown above with a single record. I have name of the field in one column and value in another column. I need to transform make the heading dynamic as shown below.
I tried with table pivot table and trellis, not no success.
You should be able to do this in a pivot table in OBIEE.
Please see my below screenshot. I was able to get my column originally named 'Total Contracted Cases' to now be called 'USD' because that is the value in the column 'Currency Code'. So for you, you should be able to get the column 'PARAM_VAL1' to be called 'COUNTRY' because that is the value in the column 'PARAM_CD1'. See below for my example:
In the second image, be sure to click on the 'Measure Lables' properties to hide the value.
For columns that are not metrics (no aggregation rule set) that will be used in the 'Measures' section of the pivot table, you will have to define an aggregation rule in the column properties dialog box to keep the value from being converted to null. If your data is as you say it is (a single record), then this should not be an issue; you should be able to pick any aggregation rule and not have to worry about dropping data.

Set the default value of a column based on another column of a different data type

I'm creating a new table in SQL table designer, and I'd like the "Default Value or Binding" of the column to be based off the value of another column in the same table. So I'd like Column A to get it's value from a substring of Column B. Column A is a numeric data type, Column B is varchar. Right now I have the following, but get the message in screenshot 2...is there something wrong here? I also had the expression CONVERT(numeric (2,0), SUBSTRING(col_b,3,2)) and that gave the same message.
Screenshot 1:
Screenshot 2:
I don't think you can set the DEFAULT value of one column based on another column using the DEFAULT CONSTRAINT.
You may want to consider a computed column if all you're looking to do is replace a NULL value. http://msdn.microsoft.com/en-us/library/ms188300.aspx
In extreme cases, you can do exactly what you want in a TRIGGER. Read up on INSTEAD OF INSERT triggers. http://technet.microsoft.com/en-us/library/ms175089(v=sql.105).aspx

Iterate over columns of a report to dynamically show/hide them?

I want to try and implement a parameter which will allow users to dynamically choose which columns are going to be shown in a report. An idea is to create a multiple value parameter which has column names. After user hit View Report I want to try iterate over columns and selected values to join visibility.
How I can iterate over columns inside a tablix?
How I can iterate over multiple values of a parameter, so I can find if some value is selected or not?
I am using MS SQL Reporting Services 2012.
For a table, i.e. fixed columns, you can use the following approach. It's not really loop based so much as an individual distinct visibility check for each column based on a parameter selection.
Set up a multi-valued parameter that lists the columns that can be displayed/hidden.
Then, for each of these columns in the actual table, set the Column Visibility to use an expression based on the parameter:
The expression would something like:
=IIf(InStr(Join(Parameters!IncludedColumn.Value, ","), "Col1") > 0, false, true)
What this is doing is constructing a string of all selected values for the IncludedColumn parameter, then checking if a certain column identifier is included; Col1 for this particular column. You'd use different constants for each column.
So when running the report this approach can hide/display columns based on a parameter selection.
All columns selected:
Some columns selected:

Make hidden table column take no space in SSRS 2008 R2

Has anyone figured out a good way to make a hidden table/matrix column take no horizontal space?
I could use some crazy conditionals to dynamically determine the contents of the columns (effectively sliding them leftward as far as possible), but that is nasty, plus doesn't allow for varying column widths in the columns to the right of the one I want to hide.
The idea is that when a parameter is set to "Any" then the column with the corresponding value should display. But when the parameter is set to an explicit single value the report doesn't need to contain that column any more (it will be separately listed as a condition at the top of the report).
This lets me use the same report in different situations, some requiring hiding unnecessary columns.
P.S. I think Microsoft should add expressions for object sizes, and I think they should add CanShrinkHorizontally to the CanShrink(Vertically) that already exists...
I think you are looking at the Hidden property of the column. Something that is hidden will still take up space. What you want to change is the Visibility of the column. Right click on the column header and click Column Visibility and set it there.
It looks like you can hide groups, and groups can be rows or columns.
Click the down-arrow next to "Column Groups" at the bottom of the Design pane, and turn on Advanced Mode. Modify the Hidden property of the Static group representing the desired column. Poof! You've made the entire column take up no space.
I struggled with this and came up with a workaround/solution.
In my scenario it was critical to have the RowGroups EffectiveDate, Description AND TransactionID. I wanted to hide the TransactionID column, because it was part of the grouping I couldn't set the Columns Visibility.
Before
After
So what I did was Merge Cells for the Description/TransactionID Header (and called it Transaction Type) and also for the first row of the tablix "Opening Balance".
Set the TransactionID textbox Hidden: True
The trick was to make the [DESCRIPTION] Right BorderStyle: None
Then set the Cell under [TRANSACTIONID] Top BorderStyle: Solid and Top BorderWidth 0.5
Alternatively make the fore color of the column you want to hide white and set border styles appropriately.

Resources