Tableau combination chart (2 bars and 1 line chart) does not show the line chart - tableau-api

I have created a combination chart (2 bars and 1 line chart) in Tableau. However the line chart is not shown even though I have included in the Marks section. However if I undo, Analysis -> Aggregate Measure the line appear but the counts are not correct. Could anyone help.
View when Analysis -> Aggregate Measure is selected
View when Analysis -> Aggregate Measure is deselected

You need to syncronize the axis when creating a dual axis chart else these type of issues will come.
Right click on second chart and then click synchronize the axis and check the chart.

Related

Merging Percentage Lines with The Bars in Tableau Desktop

I have a graph that shows the ratio (count) of payable vs. processed words among the total words on stacked bars. I would also like to display the same ratio in percentages in lines overlapping the bars.
At the moment I have them in two separate graphs, but I want to merge them so that it takes less space in my dashboard view. I am unable to select the dual combination view as it requires two measures and even though I keep trying to cmd+click+drag the percentage measure pill to my marks, it's only changing the calculations in the bars but not allowing me to select the dual combination view.
Since the percentages are basically the ratio of the green/total in the bars, I don't think I need any complicated configurations for displaying it, however, I am also failing to achieve what I want.
Could you please tell me how to do this visualization?
Edit: I noticed that the reason I couldn't generate the dual combination view was that I had three date pills (year, quarter, month), and by removing two of them, I'm able to generate the dual combination view, but it's far from what I'm looking for as it's only splitting the stacked bar into bar+line.
Neeku, I certainly understand the desire to minimize "real estate" in your dashboard. If I understand your needs correctly, I believe that overlaying a transparent-background chart over the first chart might meet your needs, if a dual-axis chart doesn't work for you (for example, if you wanted to overlay a line chart on a column chart that is itself already dual axis).
By way of example, here is a simple Sample Superstore dashboard with a line chart on top and a stacked column at the bottom.
simple dashboard
Change the line chart to "Floating"
Size it to fit over your column chart and change the background to transparent by clicking anywhere in the line chart and select "Format"
...Format Shading
...and "None" for the color selection
Your line chart is now an overlay, but it's pretty messy.
Click on the line chart and hide field labels,
...turn off "Show Header" for each pill in the line chart
Clean things up and it should look better:
Note: one big issue with this approach is that you will not be able to click to select chart elements of the underlying chart.

Create Stacked Area Combined with Line Chart in Tableau

I'm having trouble creating a chart that combines a line chart with a stacked area chart in Tableau Public. I can create the line chart in Tableau, but after that, I don't know how to proceed. Attached is the chart I created in Excel that I am trying to recreate in Tableau.
Line + Stacked Area Chart
Thanks.
Make your chart a duel axis chart - to do this you must have at least 2 measures on your shelf - click on the right most measure a select 'Duel axis'. Once you've done this, you'll see that each measure has it's own tab on the Marks shelf, which means you can set different mark types on each - for example one measure can be a bar chart and the second can be a line graph.
Hope that helps,
Ben

Quantrix: How to enter the label within Pie Chart in Quantrix Matrix

I am using Quantrix software. I am unable to get the label of the pie chart inside the specific region for that Label.
I get the label and the value associated with the region outside the Pie Chart. I am able to connect them with a line.
I want both the value and the label to be within the Pie Chart.
I got the Pie Chart by clicking on Insert Chart View -> right click-> Show data labels -> Data label.
and right click -> connect labels.
Shank,
Right now there is no way to have the values and labels be inside of the pieces of the pie. You are correct that when using a pie chart you must have the values outside the pie and you can connect the labels with "connect labels".
It might be worth posting on the Quantrix Forums to see if any users have found a workaround.
Kind Regards,
James

tableau adjust placement of gantt bars

In Tableau, I have a dual-axis bar chart of some data with their margins of error. I am using Gantt bars for the error data, and I want to overlay the error bars on top of the original data. My problem is that I can't figure out how to adjust the placement of the Gantt bars so that they are centered over the top of the original bars, with the error value displayed both above and below the bar.
I am pretty sure I need to create a Calculated Field but am new to Tableau and coding and don't really know how to go about this.
You can do this without the use of Calculated Fields as follows:
Create a Bar Chart with the original data
Duplicate the Bar Chart by Ctrl-Clicking the measure pill in the Rows shelf
You should get 2 charts one above the other now, select one of the charts from the Marks dialog, and change it to Gnatt Bar
Drag error to the Size button of the Gnatt Bar and also to the Color button
Now click the one of the pills in the row shelf and select Dual Axis
Right click the second Axis and select synchronize Axis

iReport Line and Bar in same chart

I'm using iReport to try to create a chart for bug tracking. I need a stacked bar chart for the different severities of the open bugs by day and a line showing the total number of bugs by day. It's easy enough to build a multi-axis chart but it always shows up with distinct ranges on the Y axis. I want the Y axis to be the same range so that the total bugs line floats above the stacked open bugs bars. This is simple to do in Excel or Crystal Reports but I cannot see a way to do this in iReport. I need to be able to either merge Y axis in a multi-axis report or be able to change the series type of one of the series from stacked bar to line. Any tips/reading materials would be greatly appreciated.
It would be nice if it were more automated, but you can use a solution like this pretty easily:
Instead of calculating the Range Axis height automatically, create your own variable to decide an appropriate value for the maximum value. Then you can set the Range Axis Max Value to the same thing for both charts.