tableau - color text dimension according to other dimension value - tableau-api

I have 2 dimensions (one is BUG_ID, the other is severity).
I have defined a specific color for each possible severity (blocker == red, normal= orange...)
I am using a table and I want to color the BUG_ID dimension value (the text) according to the color defined for reach severity for example:
I have tried several things but cannot figure out how to do it.
Any idea ?

Generally Tableau is a data visualisation tool, so if you want to create graphs of any kind it's great. If you want to create a table and format text, stick to Excel!
You can drag all dimensions you would like to have in the rows shelf. eg: [Description] and [Status]. Now you can drag the [BUG_ID] onto "Text" in the Marks pane. That will display the bug ID, but it will be on the right of all other dimensions. And you won't be able to change it.
To color it, just drag [Severity] onto colur and choose the colors you want.

Related

Tableau packed bubbles - arrange the bubbles custom

I'm looking to create a packed bubble graph like the below (size of the bubble corresponds to population, and the color of the bubble corresponds to number of widgets sales). The graph is exactly the way I need it, except that I would like to arrange the countries so that they are grouped by continent. Is there a way to do this in Tableau?
I've tried to recreate a similar scenario even though it's not clear if the bubble color should (or not) be related to a specific field.
That being said, using the superstore dataset, I've "grouped" customers by region (color) so they are some how aligned through inner circles.
In order to do so, I just sorted the region pillow in the detail section.
See below.

How can I put different colors for the different elements of a single dimension

How can I set different colors for the different elements of a single dimension with Tableau Desktop?
I want the colors in fields of dimension and not like the picture.
Thank you
You can drag that same dimension on the Color mark in the Marks area, which by default is displayed below filters, right to the Data area.
To change the colors that Tableau assigns by default you can click on the Color mark and use "Select Colors": it will open a window where you can select the color you want for each value of the dimension you're using.
Edit
Unfortunately you cannot color the background of a dimension axis. You can achieve the same result with a trick though:
Drag the dimension to rows
Double-click in columns and write MIN(1)
From the marks dropdown, make sure Bar is selected
Drag the dimension to the Color mark
Drag the dimension to the Label mark
From the Label mark, set the horizontal alignment to either left or center
From the Label mark, mark the flag to allow labels to overlap other marks
From the Size mark, crank the size all the way up
Right-click on the dimension from the rows area and unselect Show Header
Right click on the MIN(1) axis below the graph, click Edit Axis, select Fixed among the Range options and fix start and end to 0 and 1 respectively
Right click on the MIN(1) from the columns area and unselect Show Header
Of course adjustments can be made to better suit your needs, but this should give you an idea of the whole process.

How do you heatmap in tavleau a list of numbers based on another column data

I have data from 48 countries. I am trying to visualize it on a map. I want to display half the countries in 1 color and the other half in another color. This segmentation is based on another column which has string value 'yes' or 'no'. I want to do it on tableau
Country data OFF
------------------------
US 100,000 yes
IN 200,000 yes
BR 300,000 no
MX 150,000 no
I want to plot US, IN in Blue and BR, MX in green. The shades of green and blue are dependent on the values of data.
Have you tried to drag the OFF field to Color in the sheet? This should do the trick
You can put either the measure data on the color shelf to color by value, or the dimension OFF on the color shelf to color by OFF -- i.e. to use color to encode a single field's value.
If you want to color by two dimension fields, you can get the shading effect you mention by putting both on the color shelf -- using the shift key to add the second one if it's not in a hierarchy with the first one.
If you want to color by both a dimension and a measure (as in your case), you have to go to a little more effort -- assuming its worth it. You can make a calculated field that uses both fields to map into a category (say returning a string like "off yes, data high" or "off yes, data mid") and then edit the colors to map them as you like.

SSRS overlapping column chart

currently i have the following chart:
It currently contains one column (blue one) and a range column (white one). But what i really need is a chart which looks like the following:
So the white column should be overlapped by the blue column. I tried to change the range column to a normal column and changed the "CustomAttribute" PointWidth but was not able to get my chart looking like the needed chart.
Does somebody knows how to do that? Thanks
#glh: I know that, it currently looks like this (changing the white range to column):
ANGEFALLEN = blue column
EINGEPLANTV1 = white column
Problem is that the white column is now right to the blue column.
If i change the order of the chart data the blue column ins right to the white column. But i need the white column to be behind the blue column like shown in the second picture of the main post / question.
Followup 25.04.2013:
The chart should look like this:
I need to move 1/3 of the white column behind the blue column so that 2/3 of the white column is still visible. The blue column has to be in the foreground and the white column in the background.
Overlapping Series:
Change the "overlapping" series to a "Range Column" chart type. This will allow you to layer the two series on top of each other.
Once you do this, you will notice that the series will get two value drop-downs:
Set the "Low" drop down to an expression with the value of 0.
Set the "High" drop down to the value you would like to represent.
Offset Series Position:
I am actually not sure if this is possible in SSRS. However, you can play with the widths of the layered series to achieve a similar effect.
Set the PointWidth propety of the series (under CustomAttributes) either larger or smaller than the default .08, depending on your desired effect.
Here is a quick mockup I put together. It isn't exactly what you were looking for, but maybe it'll get your creative brain juices flowing.
You should be able to drag the values around in the values box or there will be a blue up or down arrow to alter the order your data is displayed. See below for an example of what you will see when you select the charts data.

if entry from database is of a certain value, substitute an image on the report

I am trying to read a value from my database, and depending on the character, have a different image show. Basically the values will either be b,r,g,or y for blue, red, green yellow and in the report I would like to show a colored circle corresponding to the entry. Does anyone know a quick way to do this? I am new to crystal reports. Thank you.
Circles are created using a rectangle (yes, really). Set the roundness=100%. Unfortunately, you can't hide/show (suppress, In Crystal's vernacular) a rectangle with conditional logic. Nor can you change its x and y values. So, for your purposes, its useless.
One option is to insert four, colored, images of circles. Suppress all but the one that you want to display.
Another option is to insert a text box, then add a circular, wingding character to it (Word can help w/ this). Use the text box's conditional formatting to change its color.
One additional suggestion to craig. You could:
create an image file for each of the coloured circles
add one of these coloured circles to the report
right click, format graphic
from the picture tab, select the formula editor for graphic location
enter a formula which looks for the relevant coloured circle image file
'C:\circles\' + {table.field} + '.jpg'
L