How do I create a pie chart from a single column of data? - pie-chart

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.

Related

How to get the values in the same column in Tableau?

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.

Is grouping columns in google stacked column chart possible?

i have Google column chart, stacked. There are final horizontal axis ticks (A,B,C...J).
I need to represent groups of this columns, with some aditional data (percentage of total).
So, groups should be (A,B,C,D), (D,E,F,G), (G,H,I,J), please look at attached image.
So far, only thing i managed to do is make 3 separate charts, one for each group.
Can this columns be grouped inside one chart?

show each column in the cross-tab in different background color -Tableau

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.

Combining Measures into a single column in Tableau

Is there a straightforward method for combining multiple columns of data into a single column so the data rows overlap? This is NFL data and I'd like to see the teams overlap instead of in there own separate columns. Thanks for any guidance.
When you place a discrete field on the Columns shelf, headers for the members of that discrete field are created. When you place that discrete field into the Marks Shelf instead (Color, Size, Detail, Tooltip...), you separate the marks in the data view according to the members of that discrete field. This is a way to show more data without changing the table structure.
You've placed [Offense] in the Columns shelf, and you can see that each member of [Offense] (ARI/ATL/BAL...) has its own header in the table. Try removing [Offense] from the Columns shelf and instead adding it to Color. You'll now have a view with a single column in which the SUM([Total Yards]) has been separated into a line per team, each a different color. If you want them all to be the same color, you can just place [Offense] into Detail to separate the marks without changing their appearance.

grouped stacked sales column chart

I am trying to produce a sales chart using only the native Excel features, I am trying to group sales data by month and category. I want my sale types to stack for a monthly total so that I can compare not only total volume, but also track where that volume is coming from. I have been able to group by month using a pivot chart, but I can't figure out how group my categories and display them as discrete parts of the monthly sum. Here is a mock-up of what I am trying to produce: http://i.imgur.com/BCFfwQJ.png
I'm helpless in VBA and SQL, and my coworkers are even worse than me at it, so I need to do this with just the built-in Excel 2010 features.
Set up the data so the months are in the first column, type labels in the first row, values in columns under the respective type, and keep the top left cell blank (above months and left of types). Add another column with the quota label next to the type labels and the quota values next to the type values. Make a stacked column chart from this data, right click on the quota series (which is another stacked column), choose Change Series Chart Type from the pop=up menu, and choose a line chart type.