Age of Passengers Histogram - excel

I have a data set that has ages listed and the number of passengers who are that age. I need to create a histogram to show that data. I only seem to get a histogram chart output of 1 column of the data, not both though. See image below.
How do I get essentially a column chart (but as a histogram) to show the quantity of passengers in each age group?
enter image description here

I think you want to use a clustered column chart, with the age column as the horizontal axis.
you can reduce the gap width for the look of a histogram.

Related

How do I graph scalable data on both the x and y axis of a bar chart in Excel?

I am having issues creating a Bar graph in Excel. Currently, the Y-axis is a 'series' value input allowing for salability whereas, the x-axis is a 'categorical' input. I am trying to graph the 1st year earnings (y-axis) for each major at two Universities(UF-USF) with the number of graduates at the universities on the x-axis. I'm using the same population data for both so the columns overlap and can compare degree earnings between the universities. I managed to create a graph that has a "scaled" x-axis but, it's still categorical data so I cannot manipulate it- Figure 1. I want to make it look like Figure 2 while displaying the disproportionate number of graduates per the three degrees on the far right. I've already considered other graphs but must have a bar chart.
Figure 1: 'Scaled horizontal axis with Categorical input
https://gyazo.com/8e8d97bc2696113071d487ed96212b61
Figure 2: Overlapping University Bar Chart(Categorical X-axis)
https://gyazo.com/f1fbdebee4b1c4df27471c812d04da0e
Figure 3: Alternate Bar Chart without University Overlap (Categorical X-axis)
https://gyazo.com/3ed448c369827c0dd056fc151444df06
Figure 4: Data
https://gyazo.com/73ace8e16f481b5776a333911084b8a1
The 1st year, 5th year and 10th year earnings are in the data set. Until this is figured out, I'm only graphing 1st-year data.
Thank you!

Order column chart by count ID

I have data on neighbourhood complaints regarding dogs, noise, garbage etc. I'm trying to visualize with a column chart. The neighbourhoods on the x-axis have to be ordered by the count (occurences) on the y-axis.
Alfabetical ordering is default, but I do not know how to change it. I've tried to sort neighboudhood by ID, but this doesn't work.
No code is used as this was produced in the Dashboard module.
The result should include a column chart, ordering neighbourhoods by the number of complaints in a descending order.
Who can help me out?
Thanks in advance!
I had a quick look at my 11.1.4 dashboard chart with Product line on the X axis and Revenue on the Y axis. If I sort on Revenue the chart displays in the correct order. What happens when you sort the Number of Occurrences field in your chart?

Excel Pivot Chart 'fixed' horizontal axis

I have got a horizontal axis that holds numbers (roughly 7,5 through 18 at 0,5 intervals) based on the set filters.
I would like it to always show the 7,5 though 18 on the horizontal axis, even if the filtered only is applicable 10 to 12,5 for example.
Thing is, the axis options do not show bounds to set as I have found to appear in other solutions:
I've double checked to make sure my axis data is formated as numbers:
In case of possible relevancy, the formula used to calculate the day time indicator is
=mround((mod(GDQ[Timestamp];1)*24);0,5)
Is there a way to have the horizontal axis always show start through end plotting the filtered data always on the same timeframe?
I had exactly the same issue, and solved it on the pivot table side.
Go to the field setting (in your case for the day/time indicator, your x-axis), then to the tab "Layout & Print", and activate "Show items with no data".
Now every category will always show up in the pivot table, even with no data after you do some filtering with your slicer, and the layout of the graph will remain constant (axis limits).

Create a pie chart of ages, showing under 30's, 30-50's, and over 50's

I have an excel 2010 sheet with a bunch of customer data. I have the ages for the customers. They are a float value. I want a pie chart that shows the number of customers under 30, between 30 and 50, and over 50.
There are over 2000 rows.
I highlight the column, click inset, click the pie chart icon, and I get a disco ball coloured chart with the numbers 1-9 in the legend, excel then proceeds to crash. I get that, there are too many ages to put in a pie chart at that point.
So I've tried adding a column with a nested if statement to give me the values "Under 30", "Over 30 and under 50", and "Over 50". I thought, given there are only 3 unique values in this column, I could create a pie chart on it. Hoping it would give me the percentage of each age range. But I only get a legend value of 1 and a blank pie.
I know I'm obviously missing something really simple but I can't get my head around it. Any help is greatly appreciated.
Two things:
A pie chart does not aggregate data automatically. You need to do the aggregation and feed the aggregated data to the pie chart
A pie chart needs numbers, not text. Well, any chart does.
So, to aggregate, you can use Countif or Countifs. For example, in the screenshot below the three numbers are calculated this way:
under 30 =COUNTIFS(A:A,"<30")
30 to 50 =COUNTIFS(A:A,">=30",A:A,"<50")
over 50 =COUNTIFS(A:A,">=50")
Then select the data as in the screenshot and insert a pie chart.
Add data labels and change the data label to show percentages if you want.

Labeling % of total on stacked bar chart in Tableau

I am trying to create a stacked bar chart with dollars on the vertical axis, date on the horizontal, and three separate qualitative measures (dollar value is divided between all three of the measures). I'm looking for a way to label each section of the bar with the percent of the total (labels fall inside each section of the bar).
The data that I have is the date, category, Total $'s, category 1 $'s, category 2 $'s, category 3 $'s.
Up to this point, I have taken the date pill and dropped it in column, taken measure values and dropped it in rows, taken measure name and dropped it in color in the marks box. I'm left with a stacked bar to my liking. So I am pretty much looking for a way to label each portion of each bar with say the sum of cat. 1 divided by the sum of the total bar.
Can anyone help?
It's pretty simple. Drag Total $ again to the rows, then right-click, quick table calculation, percent of total. Then right click again, Compute using, Cell.
This will give you the percentages. Now just drag this created field to Label

Resources