Tooltips showing measure values for stacked area chart Tableau - data-visualization

I am new to Tableau, but am working to learn how to use it for dashboards. I have created a stacked area chart containing both durable goods and non-durable goods across time. Currently I can't fix the tooltip from showing both values of a date, it will only give the value for the item I am hovering over. How can I edit the tooltip to show both at once? I have attached a screenshot below:
Tableau chart

If you want to show more than just the default measure in a tooltip, make your stacked chart then drag the measures you want to see into the "Tooltip" box on the Marks card. They should show up just below that box. Then click the "tooltip" box and set up your lable text. In your case:
Month of Date:
Durable Goods:
Non-Durable Goods:
Then in turn click to the right of each label, select the INSERT option at the upper right of the tooltip-editing-window, and select the relevant item, and it should then appear in place surrounded by "< >" brackets.
So you would end up with a tooltip looking something like this
Month of Date: <Month(Date)>
Durable Goods: <SUM(Durable Goods>
Non-Durable Goods: <SUM(Non-Durable Goods)>
You can click PREVIEW to confirm that much works. Exit the editor.
Then create your computed fields, say "DG%" and "NDG%".
Probaby something like DG% = FLOOR ( 100 * SUM([Durable Goods]) / (SUM([Durable-goods]) + SUM ([NonDurable-Goods]) )
Maybe you should use ROUND instead of FLOOR because FLOOR isn't defined for some data sources but I think ROUND is always defined.
Drag each of THOSE onto the ToolTip little box in the Marks Card.
As you do that they should show up in the Marks Card as "AGG(DG%), etc.
Then double-click the tooltip box to pop up the tooltip editor, and they should show up when you click INSERT and you can insert them in the tooltip and possibly surround them with "(" and "%)"
Voila.
Wade

Related

Colors[4] not showing color selection on Front Panel

I am trying to set the color of an indicator to different colors based on different values, like 1 = red, 2 = blue etc. Using guidance from a Youtube video (accessible using this link: https://www.youtube.com/watch?v=czUmPQmKmGU), I have created a Colors[4] control for the indicator I have after changing it to the "write" function.
The Problem on the front panel is that I am getting a control with numbers instead of a color box where I can select the colors to show based on the value. This was the control I got instead.
This is the control I am trying to achieve (below):
Is there any way that I can get the color box on my control instead of the number controls? I am not sure if it can be changed through a control on the front panel or something but what I have tried so far keeps leading me back to this problem.
Any advice is much appreciated
A color box control is just a U32 number (three bytes for RGB and one which is always 0), which is why that's what you get.
There is a right click plugin which adds a replace with color box option directly to the right click menu of unsigned 32 bit numbers, but I don't remember if it ships with LV or not.
If you don't have that, you can always just right click the indicator inside the cluster, select replace and navigate the palettes to find the color box. You can also copy a color box and then select the indicator and paste, which replaces the selected control.
The color[4] is actually an array of 4 colors (UInt32 as Yair said), that define 2 color gradients, one for the 'Off' state, and the other for the 'On' State of the control.
If you want to set the control's color, you will have to define all 4 of them.

Tableau (Highlighted Tabs) - Create color range

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])}

Can you force a label on top of a bar chart in SQL Server Reporting Services?

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:

Edit Pop-ups on QlikView Chart

I have an expression Sum of Cycle Times in a bar chart. I want to display the equation used to calculate the value of the expression when I hover over the bar in the chart. Right now, the pop-up box displays the dimension value and the expression value. Can I edit what is displayed in the pop-up?
You can create a new expression with your expression formula in quotes and set it to 'Text as Pop-up'. This is a common practice in Qlikview charts as a means to get custom pop-up text. It's still not a perfect solution, but it will take care of your problem.

rdlc: Display percentage on pie chart

I'm using Visual Studio 2010 reporting to generate a report which has a table and a pie chart. Both work just fine except that for the pie chart, I'm to put the % value on each pie chart slice.
1. Is this even possible?
2. If it is, how do I do it?
Thanks
To put the % value on each pie chart slice do this (as shown here):
On the design surface, right-click on the pie and select Show Data Labels. The data labels should appear within each slice on the pie chart.
On the design surface, right-click on the labels and select Series Label Properties. The Series Label Properties dialog box appears.
Type #PERCENT for the Label data option.
Beware: If you use multiple data fields like this:
you need to move every field to first position and perform above steps as shown here otherwise you end up with only one pie chart slice showing the percentage and the others are blank...