Tableau - hide x axis labels except for one that we want to be displayed - tableau-api

I am trying to hide few sensitive details from x axis and keep only the one that has to be sent to the client. Is there a way to achieve this on Tableau ?
Assume i have a bar chart.. My x-Axis has labels, (A, B, C).. I now want to display only C-bar chart and hide labels A and B from the bar chart
Thanks
Sachi

1) If you don't want to show the labels for A and B, you can create a calculated field like
[New Label] = IF [Old Label] = "C" THEN [Old Label] ELSE NULL END
Use this as the new label and you won't see the Labels for A and B.
2) If you don't want to show the Bars for A and B altogether then just filter them out
3) If you are sharing the file and the client has Tableau desktop, he can always unhide/modify the views to take a peek into the sensitive info. The only way in this case, is to remove the data for A & B from the data source and share the resultant views only for C
OR, of course, use Tableau server (can't verify; limited experience)
Hope this helps.

Related

add values next to percentage of total in Tableau

I am new user of Tableau and I have a question:
How can I present both the values and the percentage of total in stacked column in tableau?
here is example how it should look like (i know how to do it in excel but not in Tableau):
Just add both values to label. After you compute the percent of total on SUM(Teus) hold down control to make a copy and drag it to Label to explicitly have it displayed. Then drag a new SUM(Teus) from the data pane onto Label as well. Now you will be able to see both values. You can then click on the Label button and then the [...] button if you want to customize how these values are displayed. Side note: you are getting those skinny bars because you have Year as a continuous dimension. Using it as a discrete dimension will give you the thick bars.

Report labels match a dropdown in report builders

I have a report that is designed to allow users who aren't proficient in Tableau visualize data in the form of a bar graph. There are some drop downs on the side that allow them to select some dimensions. These dimensions then populate the graph. The labels in the graph, however, do not match the dimension name selected, and I was curious how to do this. So for instance on the right hand side Dimension 1 is set to Item Subcategory, and I'd like it to say that in the graph as well, instead of being labeled Dimension 1.
The drop downs on the right are generated from this code in the dimension itself:
If anyone has any ideas on how to do this, I'd really appreciate it. Thanks!
The way I would do this would be to hide the column headers on the sheet itself, or edit their aliases to just a bunch of spaces so it appears blank.
You can then create a sheet with the Dimension 1 parameter on the Text shelf, formatted to look like a column header (or formatted however you want it to look), and add that sheet to the dashboard as a floating sheet. Repeat for the other two dimension parameters, position the sheet above the column so it looks like the header, and there you go! Whenever the parameter changes, the column header will change to match too.
I would note that this only works if the sheet is on a fixed-size dashboard, since floating sheets don't usually play nice with auto-sizing dashboards.

Dynamics CRM 2013 Chart DrillDown Sort

Is there a way to sort a drill-down chart of a Dynamics CRM?
For example, I have two custom fields (X and Y) on a lead entity. I've already made a chart that use X and Y as the axis and already have them custom sorted.
However, there is a case when I want to drill-down chart X using Y field. If I do that I will get a drill-down Y chart that is not custom sorted.
Is there a way for me to sort the drill-down Y chart?
This is presumably not the answer you were hoping for: No, drill-down charts cannot really be customized.
I would suggest the following alternative solution:
Make a system chart showing the same values that is shown in the specific drill-down chart.
Apply custom sorting to this system chart, which you are aware is possible.
Have your users use this system chart instead of doing drill down. In this case they would first apply filtering to the view to show only the specific X values they are interested in. By then selecting your system chart, they will actually see the same data they would have by drilling down - only the data is sorted as intended.

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.

.Net Charting - switching display order of bar charts

Using System.Web.UI.DataVisualization.Charting, I've got data I want to represent as a Bar chart with the first item at the series displaying at the top of the chart, rather than the bottom. E.g. for a series with labels {"A", "B", "C"}, the bar for C will display at the top, while I would want A to be the top bar. This ordering makes sense for numerical data, but in some cases less sense for categorical data. Is there any property or something I can set, or do I need to reverse the order of the data?
You might try something like this after you've bound the data (but before the chart is rendered):
Chart1.Series["Series1"].Sort(PointSortOrder.Ascending, "X");
This will sort Series1 by its X-axis value.
Scott Mitchell has a post about Sorting and Filtering data in the Chart control here.
I had the same problem i tried the following:
Chart1.ChartAreas[0].AxisX.Minimum = 0;
Chart1.ChartAreas[0].AxisX.Maximum = 7;
Chart1.ChartAreas[0].AxisX.IsReversed = true;
Provide the Minimum and Maximum values for the bar chart and then reverse it.
Let me know if that works in your case.