side by side chart for dimensions only in Tableau public 10 - tableau-api

Hi I have data like this:
Sample Data
I want a chart like this:
Desired Output
Is it possible in Tableau or not? Please help.

First of all you have to pivot the dataset columns.
To do so, in the datasource section go select the 3 columns, right click and select pivot.
You'll get 2 new fields: Pivot Field Names and Pivot Field Values.
Drag the Pivot Field Values in the dimension panel.
From the analysis Menu uncheck Aggreate measures.
Finally you shold be able to get something like this:

Related

How Do I generate Line Graph in PowerBI for the following Data

The Data I have looked like the Image below:
I want to create a line Graph,
The x-axis will have the Months (January to June), Y-Axis will have the Tot_QtY.
Considering that the date information is not in a single column but is spread out to multiple columns, How do I make a line chart.
Output I am getting is shown below:
The Output I need would look like this:
your input data is not correct, you need to model it so you get one column with rows of data. Click Edit Queries, this opens query editor.
Click tab Transform, select your columns and click unpivot.
My expectation is that you still need to work a bit more on your data because how the system knows from a column: MayDATE. that you talk about May. The best base data you can have is a column date and a colum value with data.

How I can add three columns values and return values in new column tableau?

Example:
enter image description here
example: 10+20+25 = 55(in new column)
Assuming the values you would like to add up are all from the same measure you can add them all by selecting 'Show Row Grand Total' from the Analysis option in the toolbar.
This works when the values you would like to add share the same row. Of course, you can also show the Grand Total and the bottom of the column if that's the way your values are oriented as well.
Here's an example of what this looks like in a similar situation to your example.
Hope that helps!

dynamic column in tableau based on quick filter selection

I would like to know if it is possible to create a dynamic column in Tableau that will change based on quick filter selection.
Example:
Tableau sample screenshot
Try using parameters to select the category. This will give you step by step directions.
Doing this is as simple as it looks.
Assuming that you're using a query to fetch data, make sure the column on which you want to apply filter is available in the select statement.
Next, go to Sheets and drag the field into Filters section, right click on it and select Show filter
The filter will be visible on the right pane and can be used to alter the data depending upon the values / ranges selected.
Also, filters on Tableau give you a host of options to select from - dropdowns, radio buttons, check boxes, sliders etc etc...

Group by first two characters of column, in Tableau?

I'm using Tableau Desktop v9.0. I have data that looks like this:
code,items
02050252,7
03040620,19
03060423,3
I want to create a bar chart of the items grouped by the first two characters of the code field.
So effectively a chart that shows this underlying data:
new_code,items
02,7
03,22
Is it possible to do this within Tableau? Or do I need to group the data manually myself first?
You can definitely do this within Tableau.
Make sure that your code column is a string. If it's not, right click on it in the dimensions section and choose Change Data Type.
Then, create a calculated field (Analysis -> Create Calculated Field) and enter the expression LEFT([Code], 2), which will take the first two characters of the code field.
Drag your new_code field to the Rows shelf and Items to the Columns shelf and voila, you have your desired data. You can of course change the type of the chart, make it a table, etc. from here.

iReport - organizing column output?

I am working on a profit and loss report that should look like this:
And my data table looks like this:
For this P&L I have query #1 that populates the data for the current month and the 3 months prior. Then I have query #2 to calculate a 6-month rolling average, and then query #3 to calculate a year-to-date total. They're all joined with union statements.
I can't figure out the best way to get this to render in iReport. Right now I am using a crosstab, and I was able to finagle the "measures" labels into the customer column using Bekwam's "Expanding a Crosstab" technique.
So my questions are - is there any easier way to do this? Every time I add a measure to the crosstab I have to rearrange the measures labels and fields. If I made a pivot table in Excel, I could click a drop-down box and choose to show or hide certain months - is there any way to do that in iReport? I feel like I must be missing something. If anyone else out there is displaying data in columns like this, how are you doing it? If you set up your detail band in columns, any tips for organizing output so it looks professional?
Thanks,
Lisa
I decided to create columns in the detail band. I put my measure labels in the first column and set them to print in that column only. Then I have my measures values print in each column. I wish I could tell iReport to print the measures values in columns 2-n, but I don't think that's possible.
Some customers will not have a value for each month in Query #1, so I've decided to join Query #1 on a calendar table (calendar table left join query #1) to add blanks as placeholders to preserve my formatting.