Tableau calculated field/filter for top - calculated-columns

I have a table with about 10,000 rows.
What would the formula (Calculated field?) be to find out which rows Donald is #1...I assume it would be a filter?

Related

Grouping by and summing in Excel

I have a table in Excel that consists of two columns, Name and Score. The Name column is not unique, many names appear several times. I want to create another table that using formulas groups by name and calculates the total score for each.
So if James had 3 records with scores 2, 8 and 4, the other table would show James with total score 14. How do I do this?
You need to create a pivot table. Select the data you want to use and then go to the Insert tab on the ribbon and select Pivot Table. After the pivot table is created you need to add the Name column to the Rows section of the pivot table and the Score column to the Values section. Then change the Values calculation from count to sum.

Why pivot table does not show identical rows from the initial table?

Why pivot table does not show identical rows from the initial table? My expectation is that the pivot table could show these in separate rows.
The initial table has 100 rows and my pivot table (while taking 4 columns) showing less.
To be more specific: All cells in 3 columns out of 4 are formatted as text, 1 column as number. If there are two rows which are identical in all 4 columns why only one of these is shown in the end pivot table? The number column is not summarized.
Identical values in the rows of a pivot table will be rolled up into one row. If the number is in the values area of the pivot table, it will be summarized.
See this data example:
If the number column is in the Values of the pivot table, then the data gets summarised and only three rows of text are showing. It is entirely possible to rename the column title from "Sum of ..." to something else, so it may not be apparent that the data is summarised.
If you want to show all data, then put the number column into the rows area. You can then format the pivot table to repeat all item labels if you want to see the text for all rows.
Edit: If all values in the Rows area identical, then the data will be rolled up, too. A pivot table is about summarizing data. You'd typically have something in the values area that calculates something about this unique combination of four values.
If you want to show all duplicates, you need to enter a unique 5th column in the row area.

pivot table calculated field on counted column and summed column

I have a pivot table, data grouped by year in a Date field.
In the pivot there's a counted field (total) and a summed field (cat1, is 1 when it applies). I would like to get a percentage cat1 of total in a calculated field.
I've included an Excel file with a simple example here
Have searched, couldnĀ“t find it. Thanks in advance.
Jan-Willem
I've come to this sollution:
I've added a column that calculates the percentage of one data row which is eather 100 or 0 percent. I use this column in the pivot table as an average. Bingo!
Example of solution
Maybe it helps someone else out.

Finding average for columns with two values in pivot tables

I have created a pivot table with column labels having two values (i.e "YES" or "NO") and it also provides a grand total on the next column.
I am trying to figure out a way to find the averages for the two values with respect to the grand total.
Here is my table:

How do I return the nth to nth+10 largest value labels in a pivot table?

There has got to be a way to do this, but I can't figure it out. It's easy to get a pivot table (and pivot chart) to display the top-10 based on subtotal values. But, I want the pivot table to display the 11th to 20th largest rows based on subtotal values. The problem is that the number of lines and columns in the pivot table are dynamic, based on ever-changing source data.
I've tried filtering the pivot table, but I can filter only for the top or bottom values, not for arbitrary LARGE() ranges in the middle. I've also tried to set up a field outside the pivot table that identifies the 11th-20th largest rows, but this field breaks if the number of rows or columns in the pivot table changes.
Are there any other ideas out there? Unfortunately, the PowerPivot or PowerQuery tools aren't available for me. Just vanilla Excel 2013.
Not a lot to go on but I'm guessing you have totals for rows and wish to filter these by rank. If so, maybe repeat this Sigma values entry and for this change Show Values As to Rank Largest to Smallest, then filter the column (not just the PT) containing the new row totals with Number Filters, Between..., is greater than or equal to 11, select And, is less than or equal to 20.

Resources