I've got a Google Line Chart with date column and few numeric columns. I've also added the numeric "average" column. And for this average i want to display trendline but don't want to display average data points.
When i use this, there is no data for avg column but there is also no trendline:
var dataTable = new google.visualization.DataView(dataTable);
dataTable.hideColumns([5]);
How would I be able to still load column average's trendline, but just hide the column so that it is values not getting displayed? Every little help would be much appreciated.
Related
I want to show both absolute and percentage value in a single view in the form of a matrix.
In the below view I am trying to add one more column showing values as percentages of total
Got hint here but not able to replicate:Tableau - Both count and Percentage in Measure Values
The data is like this
can any one please suggest!
Not that difficult. I recreated a data like yours,
Follow these steps
Add slide on rows
Add number of records in text on marks card
Add table calculation on this field -> percent of total. The view will look like this
Notice a small triangle in 'no of records' field. That indicates that it is table calculation
Add number of records field once again to text. (Tip: Double click the field number of records to add it to view directly)
Reorder as you like
or with totals
I have multiple column of survey answers from excel in tableau with the answers being 1,2,3,4,5. I want to show across the average for each column but in singular bar graph. For example row 1 would have a bar chart showing the average for that excel column, row 2 would show the average for its column etc. I would love the name of each excel column (Answer from survey) to be on the left side of the chart. However I can't figure it out since every time I drag the question into the row tab it starts showing (1-5) and doesn't just keep the average of the column. Thanks!
[
After replicating and trying what you described, my suggestions is to drag "Measure Values" (from Measure list on the sidebar) dropping in the "Columns" tray, and "Measure Names" on Rows.
Then use Measure Names as a filter, selecting the questions.
See Below:
Hi ,
Sorry for blur image! As We can see for Conversion Attrition ,Converted ,Remaining - some values are there!But it's dividing ,I need the values in the same column.
I have done this but the division is coming ! I need help here ! Thanks in advance.
If you want to reduce the number of column headers, remove some discrete (blue) fields from the columns shelf. If you want to reduce the number of row headers, remove some discrete (blue) fields from the rows shelf.
Depending on your data shape and values, you might want to put the fields you take off those shelfs onto another shelf, such as the text shelf.
The easiest approach is treat understanding Tableau as a series of experiments and learn from them -- i.e. if I do this, what does Tableau do in response? In this case, the discrete fields on the rows and columns axis define the row and column headers for your viz, dividing the view into panes and cells.
You have to also keep aware of which fields you are treating as dimensions in your view. That will determine the level of detail of the viz and the number of marks.
I have a column in a CSV-file with about 60 e-mail addresses of which maybe 45 are valid addresses, five have the value NULL and the rest are empty rows. I want to display the column as a pie chart in the following way: one slice for the valid addresses, one slice for the NULL ones and another slice for the empty rows. Is this possible and if so, how would I go about doing it? Or do I always need two columns for a pie chart? Sorry if this is a bad question, I'm new to Power BI.
For Pie Charts, you need a column for "Legend" (if you want multiple slices on your pie chart) and either a column or a measure for "Values".
You don't always need 2 columns for a pie chart, but in your case, you can't accomplish what you want to accomplish without creating an additional column.
Your additional column needs to be derived from email address and should categorize each row into Valid, NULL, or Empty Row. There's no way around this since this is how you want to divide your pie chart up.
Once you've created this additional column, place it under "Legend" on the Pie Chart visual.
Now for "Values", you have some flexibility:
You can use the same derived column you used on Legend.
You can use the raw email address column.
You can create a measure for Email Address count and use that instead.
For #1 and #2, Power BI will recognize that you've used a text column as your value, and will convert it to a row count for you.
None of these eliminate the need for creating the additional column for your Legend. But #1 and #3 both do mean you're only using one column on your pie chart. With #1 you're using the same column in 2 places. With #3 you're using a column and a measure.
Hope this helps.
I am Creating a Cross-tab with Tableau Desktop 10.0.
I need to show each column in the cross-tab in different background color. How to do this tableau. I have read about a method using calculated columns, but i am looking for other options. Also is it possible differentiate each columns with a line?
Thanks for help
I'm not sure what you mean by calculated columns but the only way I know is to use a dummy Measure in the columns shelf and then place the actual measure you want on the Text pill. Set the marks to Bar and increase the size to full. Each Measure will have its own dummy Measure in the column shelf. Take a look at this example. https://dl.dropboxusercontent.com/u/60455118/160919%20stack%20question.twbx
As for differentiating each column with a line, you can do this by going Format > Borders > Column and adjust the Column Divider.