I have the following dataset:
Which creates the following line graph with Roletype as the category group and experience as the value:
How can I pivot this graph so Roletype is on the y axis and values are on the x axis?
I think you are actually using an area chart rather than a line chart, but both function the same way. The y-axis measures a numerical value. You indicate what is on the y-axis by placing something in the values area. If you use a field that isn't a number, it's going to try to sum it or count it or aggregate it in some way. You should use a different chart type to effectively display non-numerical data (see this article about choosing the correct chart type). If you want to assign values to your role-types and then display the description on the axis you could do that. I wouldn't necessarily recommend it as an effective way to communicate your message.
To show use the values for the y-axis, add the role-type values field to your dataset. Use that in the values for your chart and aggregate by avg. Follow the instructions in the accepted answer here. You basically set the number type for your vertical axis labels to custom and then add the list of possible values. This only works if you know exactly what values you are expecting.
Related
I am trying to create multi-line subplots such that each subplot represents a rating factor on which firms are rated, and each line represents a firm's change in rating over time. Note that I don't have the date field. I have a string field that says which quarter of the year the Mean of ratings belong to.
I'm new to tableau and I created something like this:
I want to create multiple subplots: one subplot for each of the 8 rating features in the above diagram, and the subplot has multiple lines representing the variation over time for each company. I have 10 companies.
Please guide me on how to achieve this?
A rough sketch of how I Imagine the plot to look like is below:
This will teach you how to make a panel chart in Tableau: https://tarsolutions.co.uk/blog/build-a-dynamic-panel-chart-in-tableau/
It shouldn't to too complex for what you're attempting (fingers crossed!).
Building the panel chart is a little tricky in Tableau. Not terribly hard once you understand table calcs. I suggest starting simpler by moving Measure Names from the Rows shelf to the Pages shelf, then creating the line charts you want - 1 per page. Then learn about table calc partitions and addressing, including “At the Level” to have the info needed to define the panels
To make a colored line chart,
You need one field on columns that you set to display as continuous, making it green. If it is a date field, right click on the field and choose from the second set of groups, like month or quarter.
You need a continuous field on the Rows shelf, use Measure Values in your case
Use a discrete field on color to determine the number of lines, say Shortname
Set the Mark Type to either Automatic or line
I'm attempting to use the report function within Oracle SQL Developer to plot a scatter graph of my data. The scatter graph should be fairly simple: one field on the X-axis again the second on the Y-axis. This is the query I'm using to pull the required data and group it together:
SELECT
customer_x_coord,
customer_y_coord
FROM
customers
GROUP BY
customer_x_coord,
customer_y_coord
The data type of both fields is 'NUMBER'.
I'm using this as the SQL for the report and changed the style to chart and the chart type to scatter. But then I can't get the data map correctly. I'm presented with mapping options: 'Group' 'Series' and 'Value'. How do I use these options to create a graph that plots customer_x_coord on the X-Axis against customer_y_coord on the Y-Axis?
As SQL Developer said, you need to have 3 values returned by your query. If there's none, make it! For example:
select
'My graph' as series, --> this
customer_x_coord as group,
customer_y_coord as value
from customers
group by customer_x_coord,
customer_y_coord
series value won't change (its is a constant) but it doesn't matter; now you have 3 columns, so use them to plot the graph.
I have a group of trellis graphs on some data, in there you can see a numeric variable on the Y axis and a series of cell dishes on the X axis. Not all the numeric values are present on all the series of cells. Because of this the visualization results in a graph with empty spaces:
This is OK most of the time but the thing is I would like to avoid the "empty spaces, only in these graph series, that you can see between the bars. I would like to see showing only the pattern of the cell dishes where I have data.
Trying to do so I tried creating a calculated column to use it as a ordering index (https://docs.tibco.com/pub/sfire-bauthor/7.9.0/doc/html/en-US/GUID-8CAA18D0-CF28-4707-9945-041BDFD99E99.html) (Sorting Filter values asc/desc on Tibco Spotfire), after that "Limit data by expression" using a "[MyColumn] is not null" on it (https://community.tibco.com/questions/can-i-automatically-make-spotfire-ignore-empty-values-categories-charts) (How to show the top 10 column values in Spotfire) with no luck and I tried also (https://docs.tibco.com/pub/spotfire/6.5.1/doc/html/ncfe/ncfe_details_on_custom_expression.htm) create a custom expression, which I think it would be a good solution because I understand it will only affect these graphs and not the complete set of visualizations but no, I don't reach the point to change it. Last that it should work but it doesn't is to "Show/Hide Items" under a Boolean expression that it would include that "[Axis.Value] is not NULL" and "Apply individually for each trellis panel" of the numeric column which sound terrific but... nope, it didn't work either...
Any help would be appreciated, now I will select one by one on individual graphs extracting them and plotting them in other place but this is not very useful as a "large scale" solution. I am sure there is a way to insert a proper expression to avoid the null values of the cross of both variables, the numeric and the cell dishes.
this is because you are trellising data, not the axis. you won't be able to filter out values on the x axis; it's simply not how trellis works.
using multiple visualizations is the solution, but I assume you've got n sets of categories that you want to separate out without creating a ton of charts on the page and perhaps you can't guarantee the number of categories or their names, so you want to build a flexible solution.
please check out an answer I just wrote over here which illustrates how to use a document property and a property control to limit a visualization. your property control can be linked to automatically and dynamically display unique values in your "category" column (the one you are trellising by). maybe this can be a solution for you?
I have a chart in excel that desplays number values and line graph in percentage.
Any idea on how I can display the percentage in SSRS.
Please note I can do it individualy in two separate report in ssrs but I want to combine the two. Please see attached image
the bar chart are in Values while the line graph is in percentage
Many thanks
To plot a series against a secondary axis, as in your Excel example above follow the instructions from MSDN regarding secondary axes.
To plot a series on the secondary axis
Right-click the series in the chart or right-click on a field in the Values area that you want to display on the secondary axis and click Series Properties. The Series Properties dialog box appears.
Click Axes and Chart Area, and select which of the secondary axes you want to enable, the value axis or the category axis.
Hopefully this is what you require. Please let me know if your require further assistance
am using SQL Server 2012 and Visual Studio 2010.
I would like to link the y axis of these two charts together, is this possible?
M
In the vertical axis properties you can configure the maximum value for the axis with an expression. Then check whichever dataset contains the largest value and set it to that (optionally adding a bit of padding if you need to).
You can check the maximum value of each dataset by scoping the MAX() function to the particular dataset.
Your expression for the maximum axis value would look something like this:
=IIF(MAX(Fields!c.Value, "DataSet1") > MAX(Fields!c.Value, "DataSet2"), MAX(Fields!c.Value, "DataSet1"), MAX(Fields!c.Value, "DataSet2"))
In this case there are two datasets named "DataSet1" and "DataSet2" and they both have a field named c which is the value displayed on the chart.
Note: This won't work if you're applying filtering to the data on the chart or you're doing aggregations based on the grouping. There may be a different scoping you can use in that case but I'd have to play around with it to figure it out.