(I thought I posted this, but it didn't seem to go through so if it's posted twice I apologize.)
I have a pivot table that has two data ranges in each row, and a total count in the data area. The table looks like this:
and so on.
What I want to appear on the sheet in another area is something like this:
"The greatest number of alarms for this date range is:"
1234
from system C
at
Plant B"
That doesn't have to be in the same cell or anything, I can figure out how to format the thing. I can pull off the highest number of alarms in that column, and I can get the system name, what I can't figure out how to do is to get the Plant Name from the first column by referencing the MAX number from the third column (which is what I did to get the system name).
Any and all help is appreciated. This data comes from an external database and it takes a long time to run the query, so I'd prefer to keep the calculation within the database rather than add another pivot table to display the max value.
Much thanks in advance! Onwards,
Q-
I have a pivot table that has two data ranges in each row, and a total count in the data area. The table looks like this:
Code:
Plant Name |System Name |AlarmCount
PlantA A 123
B 445
C 45
D 10
PlantA Total 623
Plant B A 976
B 345
C 1234
D 45
PlantB Total 2600
What I want to appear on the sheet in another area is something like this:
"The greatest number of alarms for this date range is:"
1234
from system C
at
Plant B"
That doesn't have to be in the same cell or anything, I can figure out how to format the thing. I can pull off the highest number of alarms in that column, and I can get the system name, what I can't figure out how to do is to get the Plant Name from the first column by referencing the MAX number from the third column (which is what I did to get the system name).
Any and all help is appreciated. This data comes from an external database and it takes a long time to run the query, so I'd prefer to keep the calculation within the database rather than add another pivot table to display the max value.
Much thanks in advance! Onwards,
Q-