How to create a Stacked Column Chart in Tableau using two different calculated fields as measures - tableau-api

Attached is the image of two calculated fields I want to show as one stacked column chart
Two separate column charts
Blue and Orange charts are two different Calculated Fields
I want to add them and show as one column chart - E.g. - For the month of Feb'22 the blue part should show till 25 and on top of it show the orange part till 111
Is there any way to do this?

Related

How to create a stacked bar chart grouped by 2 category

I have a data table, group in 2 category A and B as below
data table
How can I create a stacked bar chart like that
chart
There's not a single built in way to make a chart with bars or columns that are able to split like that.
I think the closest you could do would be to make to bar charts back to back. One would filter for Cat A and the other for Cat B.
The legend for each table could be used or a separate legend could be made from a rectangle and some text boxes. The bars' colors would need to be set otherwise it would Automatically use the same initial color for both.
To make the left chart go in the reverse direction, click on the bottom x-Axis and set the Reverse property to True.
Then Hide the Y-Axis of the Chart B.

Is grouping columns in google stacked column chart possible?

i have Google column chart, stacked. There are final horizontal axis ticks (A,B,C...J).
I need to represent groups of this columns, with some aditional data (percentage of total).
So, groups should be (A,B,C,D), (D,E,F,G), (G,H,I,J), please look at attached image.
So far, only thing i managed to do is make 3 separate charts, one for each group.
Can this columns be grouped inside one chart?

Create a grouped bar chart with multiple measures by color

I'd like to create a grouped bar chart with multiple measures by color. I have the following measures:
Clicks
Impressions
Revenue
Profit
I have a total of 2 web sites that I am collecting data from, so I'd like to have a different color for each measure and the columns to be side-by-side. Also, I'd like for them to be separated by site as well.
I see the stacked bar columns, but that's not the way I want to visualize this. Anybody have any ideas?
As far as I Understood, you have 4 measures, 1 dimension(Websites) with 2 websites names. Now, you need to show side by side bar, each column has two websites i.e., 4 columns with 2 sub columns each.
Drag Measure Names and Websites to columns shelf and Measure Values to row shelf.
Now, from Show Me shelf select side-by-side bars
If you get 2 columns with 4 sub columns, swap positions of Measure Names and Websites.
If you didn't get different colors for different measures, drag Measure Names to Color in Marks.
hope this is what you are looking for.
Just like Y.Prithvi said, you would use measure names and measure values.
(disregard the fields in the filters card, I filtered my data to match what you were trying to accomplish)
See example:

Gantt over time with summed bar

I'm having trouble creating the following chart in Tableau.
I have data that looks like this:
name date count
a 11/10/2012 2
a 12/10/2012 3
a 13/10/2012 2
b 12/10/2012 6
b 13/10/2012 2
b 14/10/2012 3
c 14/10/2012 2
c 15/10/2012 2
And I want to create a bar chart that has the sum of the count on the y axis and time on the x axis. The width of the bar should be the length of the time, like a Gantt chart. Each name has its own bar. Here is an image that shows what I am after.
The bars should overlap if the times overlap.
I have tried various things in Tableau but haven't really got close.
Is this kind of chart possible in Tableau? If not in 7, will it be in 8? I have heard it makes it possible to create some more complex chart types.
A workbook with data can be found at http://community.tableausoftware.com/servlet/JiveServlet/download/188799-12362/Gantt%20over%20time%20with%20summed%20bar.twbx.zip
Thanks for your help,
Andrew
The trick with Gantt charts in Tableau is to put a calculation on the size shelf that calculates the duration of each bar in units of days. See the example screenshot at Tableau example
You also need a continuous date field on the columns shelf to get a horizontal time axis.
In this example, I also did a few more optional things, such as, turned off aggegation under the analysis menu to get a mark per data row, rather than aggegating them, added a discrete date to the rows shelf to make each bar go on a different line (as long as each bar starts on a different date) and hid the column for that start date.

BIRT limit X series per chart like in JasperReports, drawing multiple charts

I'm using BIRT right now to display some charts. I need to display a bar chart based on scripted data. If there is too much data, then the chart X series get very compact.
I want to limit the number of X series displayed on a chart, let's say to 5, then the next 5 to draw on another chart and so on. This is possible in JasperReports by using nested groups and resetting the chart on a group event. I can't achieve this in BIRT.
Is this possible in BIRT?
P.S. I need to obtain what is on top of the image below, like in Jasper. What I can with BIRT is on the bottom-right
Yes, this is possible:
Add a Table item to the report, with the appropriate dataset.
Add a group to the table, to restrict the number of series to no more than 5 series per group (ie. grouped in the same way as the nested groups would be set up in your JasperReports.)
Delete all rows from the table object except the group footer.
Add a graph to the group footer (by dragging from the Palette) and set up columns, values and series as normal.
No resetting of the chart on a group event should be necessary, since the grouping is already done within the table object.