Tableau: stacked column with line - tableau-api

I'm trying to graph workload (by day) stacking hours from tasks. I'd like to add a line indicating daily capacity of the relevant resource. I have a table for tasks and table for daily resource capacity.
When adding capacity as an independent data source, I get an error indicating I need a relationship to the primary data source.
If I join the data (on date and resource), I can get a capacity line to show, but only by adding it to the secondary axis, which leads to mismatching of scales (unless I lock in the same maximum scale for both primary and secondary axes). This works, but it's less than ideal :
a) it requires foreknowledge of maximum load,
b) lower usage resources barely move off the horizontal axis,
c) it seems to force the capacity line to use the same color palette as the column chart, plotting each time period with a different color.
Does anyone have any better suggestions?

So both axes are hours? You can synchronise the two axes to make it dynamic. Just right click on the axis on the right and there should be a check box titled "synchronize dual axes". Check that and it will sync both of them and will responded to changes dynamically.
You can also then hide the axis marks for hours on the right to make it look better. Again right click the axis and deselect the "Show Header" option.

Related

How can I filter over a bar graph data while showing the average of the entire data set?

I am making an interactive dashboard in Tableau that looks something like this:
https://public.tableau.com/app/profile/monica.ionescu/viz/ExploringHIVStatisticsinSouthAmerica/Dashboard1?publish=yes
(for your best viewing experience, please view the dashboard in the fullscreen view - button on bottom right corner of the board)
I need some help with the bar chart.
I currently have a reference line in place to mark the two averages so that they don’t move as I filter through data. When using the average line feature, the filters on the left change all the graphs on the dashboard in real-time (and thus the average with it). So, it seems like the average line is built from the data points currently on display rather than all the data points in our data set.
I want to show the averages on the bar graph as they are in the image (a constant for the whole data set) without having to manually set the average each time I add/update the data.
How do I make it so that when I change the filters, the bar graph changes but the average stays constant?
Thank you so much!
You can self-blend the data sources - duplicate the data source, but DON'T join any fields/set up relationships. The lack of join can make the secondary source act as a constant.
Alternatively create a FIXED calculation to calculate the average. This should also act as a constant - just make sure none of your filters are in context.

Grafana bar graph sorting, lower values not visible

I have a bar graph in Grafana (with InfluxDb). Its grouped by time and a tag. But I noticed that the large values are being drawn over the lower values.
Example below. You can see the points where the lower value bars are. I would expect that the lower values are drawn on top. Is this a setting?
Query:
Looking at your data it appears to be showing the time spent in each component of a request pipeline, so my suggestion would be to present them as stacked bars, which will better represent how each contributes to the total time spent.
You can enable stacked mode on the Display tab of the graph edit panel.
If you're more interested in seeing how each item compares to the others, then maybe a line or point plot would be easier to read, especially as superimposed bars will be be assumed to be stacked by most viewers.

Cognos Chart with "No Data Available" although list shows data

I am completely new to Cognos, so sorry if I don't state some necessary information. I can't go into specifics about my chart, but here is the background:
I have a SQL code running into my Query
My chart and list use the same Query and have the exact same fields
My chart is a basic line graph
When I change my aggregate function to total for my y-axis, then I can see the data points
I do not want to use an aggregate function (I need to see all the points for my x and y-axis)
My x-axis is only one object, but it has multiple y-axis values within a year (which is my series). Ex:product-cost-year list,
where my product is the x-axis, cost is the y-axis, and series is year.
How can I get my chart to appear with all my data points? Eventually, I would like to add an upper and lower confidence interval to this chart.
One way to solve this issue is to create another column that simply counts the number of products (1,2,3,...9). We will call this column count. Keep all your fields the same (product for x-axis, cost for y-axis, and year for series). You will want to add count underneath product on the x-axis. You should see your mouse pointer turn to a horizontal line and it will place it under and to the right of product. Make sure not to place it just to the right of product.

Crystal Reports: How to lock the order of an area chart legend and chart itself

So I have created a chart that shows the amount of different priority calls that my team has taken over the past 3 months for each subtype.
The X axis shows dates, and the Y axis shows amount of calls taken. There are four priorities (p1,p2,p3,p4), and these are represented by the areas on the graph. I want the priorities to show in the order p1,p2,p3,p4 but instead they are showing in varying order over the the different subtypes.
How do I lock the priorities in the order that I want?
Right click on the chart → open Chart Expert → go to the Data tab
Your call priorities should be listed in the upper-right hand corner in the "On change of" box. Click on the "TopN..." button and verify that "No Sort" is selected. Now go back to the previous screen and now choose the "Order..." button.
By default, your priorities should be sorted in ascending order. If that is not working, you may want to consider putting it in specified order which will allow you to explicitly "lock in" the order that you want these to appear. Keep in mind that in a Stacked Area Chart, the specified order is actually bottom to top which is somewhat counter-intuitive.

SSRS chart does not show all labels on Horizontal axis

My SSRS report does not show all the labels on the horizontal axis. Please see below.
Note how the red arrows point to the few that do show. So my question is, where are the rest of the labels? Each bar should have one.
For the chart I'm adding number data for the bars, and another field for the Category Groups. That field in Category Group is for the labels.
Does anyone know why some are missing?
Also, a second but less important question, why is the order of the bars not the same order as the dataset?
The problem here is that if there are too many data bars the labels will not show.
To fix this, under the "Chart Axis" properties set the Interval value to "=1". Then all the labels will be shown.
Go to Horizontal axis properties,choose 'Category' in AXIS type,choose "Disabled" in SIDE Margin option
It looks as though the horizontal axis (Category Group) labels have very long values - there may not be room to display them all. I suggest changing the labels to have shorter values.
You can set the sort order for the Category Groups in the Category Group Properties - Sorting section - this may have been previously set; if not, I suggest using this to sort as desired.
(Three years late...) but I believe the answer to your second question is that SSRS essentially treats data from your datasets as unsorted; I'm not sure if it ignores any ORDER BY in the sql, or if it just assumes the data is unsorted.
To sort your groups in a particular order, you need to specify it in the report:
Select the chart,
In the Chart Data popup window (where you specify the Category Groups), right-click your Group and click Category Group Properties,
Click on the Sorting option to see a control to set the Sort order
For the report I just created, the default sort order on the category was alphabetic on the category group which was basically a string code. But sometimes it can be useful to sort by some other characteristic of the data; for example, my report is of Average and Maximum processing times for messages identified by some code (the category). By setting the sort order of the group to be on [MaxElapsedMs], Z->A it draws my attention to the worst-performing message-types.
This sort of presentation won't be useful for every report but it can be an excellent tool to guide readers to have a better understanding of the data; though on other occasions you might prefer a report to have the same ordering every time it runs, in which case sorting on the category label itself may be best... and I guess there are circumstances where changing the sort order could harm understanding, such as if the categories implied some sort of ordering (such as date values?)
Really late reply for me, but I just suffered the pain of this problem as well.
What fixed it for me (after trying the Axis label settings and intervals from those screens, none of which worked!) was select the Horizontal Axis, then when you can see all the properties find Labels, and change LabelInterval to 1.
For some reason when I set this from the pop up properties screens it either never 'stuck' or it changes a slightly different value that didn't fix my issue.
image: reporting services line chart horizontal axis properties
To see all dates on the report;
Set Axis Type to Scalar,
Set Interval to 1
-Jump Labels section
Set disable auto-fit
set label rotation angle as you desire.
These would help.