I started working with Tableau and want to create a crosstab that displays a measure per customer over the months.
The goal is to Display every value >95 as green, the values from 85-95 as yellow and everything below as red. Is this possible?
Thanks a lot in advance.
So I start with a view of this
Then I create a dummy calculated field which will represent my color scheme
I drag the Value Color Sum to the color, then the numbers will be colored.
To change the color, click on the color button.
To create the "background", I take the "Number of Records" and drag it to Size.
Then I take the measure and change the marks from "Automatic" -> "Bar". I also click on the small white triangle and choose: "Measure" -> "Minimum" to make the bars in the background to fill up the whole cell.
Then I left-click on the size button and drag the slider to the right to make the bar fill the height.
Video of above steps can be found here: How to Conditionally Format Cell Background Color in Tableau
Depending on your data you might need to adjust your measure to make it aggregate, it depends on your data.
For example, my data looks like this:
If I don't aggregate the data the result will be as picture below, since the color will not be applied to the sum of customer A, rather it will be applied to each "row" and therefore the cell will be RED instead of GREEN (See value 110 for January, Customer A).
By aggregating the value I can direct my color scheme to this variable which make the result as I desire.
In this case I used a LOD on customer and Month to create my Sum Value:
{Fixed [Customer], [Month]: SUM([Value])}
Related
I am working on a customer satisfaction questionnaire and would like to present the results graphically, something like in the picture below:
A click on 0% should automatically colour a cell in red, 25% should be presented in orange, 50% are highlighted in yellow, etc.
Does anyone have an idea how to handle this?
Many thanks and loads of coffee to you all!
At a high level, this is very simple.
Assuming you know how to associate the value of the option group to a cell, add conditional formatting to each cell (that is underneath the option button ) that sets its background color to the appropriate color based on the value of the associated cell.
For example...
I would like to ensure the labels of my bar chart are above the bars. Can you force a label on top of a bar chart in SQL Server Reporting Services? If so, how?
The issues are the colors are so dark, it's hard to read them if they are not above the bar in the chart. I could just change the colors, but I'd rather learn how to force the label location if possible.
I'd like all numbers to be above the bar, like over the blue bar below. I have over 100 different charts in my report, so the scale will vary greatly depending on the particular report.
Thank you!
In Visual Studio, design mode, ensure that the properties window is visible, then click on any of the labels on the chart.
At this point, the properties window should show the properties for Chart Series Label.
Find the 'Position' property, which probably is showing the value 'Auto', change this value to 'Top' and this should do the trick.
You have to first make sure the chart type is not stacked.
In my experience the "Position" property doesn't always work.
Sometimes you have to go to the properties of the series, then "Custom Attributes", then "Label Style" then select "Top".
What #niktrs said in the comments of the other answer about setting the AllowOutsidePlotArea property is also true.
Microsoft do not use the label Position property for some of the chart types.
They tell us what they use by default here - in your case "on bar charts labels are placed outside of the bars that represent data points" (they appear to mean "column charts")...but sometimes with a large value it's placed just inside, sometimes partially in-out (and if you try the "Outside" position it just fails to render!).
As #jayvee has mentioned the trick with Column charts is to select the value and change the SmartLabels AllowOutSidePlotArea to True (from Partial).
However if you have a Stacked Bar chart then labels are always in the centre of the particular value.
The hack to get labels on top is to add an extra Stacked Bar value with the Color set to "No Color" and move it to the top of the values (using the Chart Data designer arrows).
The trick is getting a good expression value to use - a constant ends up too big or too small at some point, so I found a percentage of the stacked values works best (remembering to change Nulls to Zeros)...25% to 30% usually works.
Then set the value Label to the value you want to display in the data label.
I just had this issue, I was able to fix it by making sure the chart series "Smart Labels" - "Disabled" property was set to "True"
This is what my properties pane looks like:
I would like to draw a line after every group as depicted with red line in the image.
Your report appears to have a dark line under each TOTAL cell in the Effective Date column? In your report designer, just select the long table cell to the right of that one and add in a border on the bottom of the cell.
Highlight the total row, expand BorderColor in the Properties window and select the color Red for the bottom border.
I have a simple requirement wherein I would like to change the color of the bar chart in Pentaho report designer based on the value of y-axis. In case the number is negative, I would like to show it as a red bar, in case the value is positive, I would like to show this as a green bar.
I took a look at the following example but the color changes based on the values proximity to a goal of 1 million. I am pretty new to bean shell scripting and would really appreciate any inputs on the same: http://type-exit.org/adventures-with-open-source-bi/2011/05/dynamic-coloring-of-prd-charts/#downloads
Thank you,
Malavika
I have a calculated dimension that yields following values: 'N', 'P', 'K'.
On top of that is an expresion. Also I am using PIE CHART to represent the data.
The numbers are calculated ok. I need help in selecting colors for the dimension values. There are predefined colors that each dimension values needs to have. How can I imprement that? In "Expression" Tab -> "Background Color" I can't reference the dimension, since it it a calculated dimension.
I appreciate the constructive feedback.
With some chart types comes a 'Colors' tab in the chart properties window. If you go to that tab you will be presented with numerous color options for your different dimensions (calculated or not):
Change the colors to your liking and watch the Pie Chart update.
Check the 'Persistent Colors' checkbox to keep colors assigned to dimensional values.