Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 928

Return row that contains the highest value in a Pivot Table

$
0
0

I have a data set of quotations that our company has raised that I'm doing some analysis on. I've got a column for the largest quotation we've done for each client by using Summarise Values by> Max, but I would really like to include which specific quotation has that value (each quotation has a name; one of my columns in my data). Here is my field arrangement if that helps.

To complicate things slightly, the data is split between Last 90 Days and Previous 90 Days, so there will be a max value for each of those. (I have a calculation in the original data that returns "Last 90 Days" or "Previous 90 Days" as a text field so I can apply filters and slicers to my pivot). So any solution needs to take this extra field into account.

Honestly, I've tried so many things at this point; the closest I got was using Power Query to group columns and then loading that as a pivot table into the worksheet, but I couldn't quite it there. I can't seem to find any solution that fits exactly what I'm wanting.

Thanks in advance to anyone that can help.

(And please be gentle, I'm new!)

Edit:

This is an example of the kind of thing I'm after; it's just the last column in the pivot output that I'm struggling with.

Sample Data:

Quote NameClientQuote ValueLast 90 or Previous 90 Days
2300 Site 1Client 126950Previous 90 Days
2301 Site 2Client 211450Previous 90 Days
2302 Site 3Client 319500Previous 90 Days
2303 Site 4Client 124550Previous 90 Days
2304 Site 5Client 233450Previous 90 Days

Pivot Table Output:

Client# of QuotesTotal ValueAverage ValueLargest ValueLargest Quote
Client 143£286,775£6,669£26,9502300 Site 1
Client 228£201,050£6,485£33,4502304 Site 5

Also, I have a slicer on the data to filter between Last 90 days and Previous 90 Days, but this could be changed to a filter on the table if it helps with the solution.

Edit 2:Here is a screenshot of my pivot, if it helps.


Viewing all articles
Browse latest Browse all 928

Trending Articles