Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help please to group & average some data

Status
Not open for further replies.

markdmac

MIS
Dec 20, 2003
12,340
US
I have a report in a CSV file that lists Cost Center, Mobile Number, Mobile Number User Name and Domestic KBU. The data represents several months of usage for each user.

I need to generate a report where all Mobile Numbers are grouped by Cost Center, I would like each number to appear only once with calculated field to list the highest Domestic KBU (for just that user) and the average data usage for that user.

Here is what I have so far to group by the cost center. I'm unsure how to continue my sorting to get the details for the specific users.

Code:
$VZW = Import-CSV "C:\Users\mmaclach\Desktop\Martin.CSV" | Select "Cost Center","Mobile Number", "Mobile Number User Name", "Domestic KBU" | FT -GroupBy "Cost Center"
$VZW

Any guidance or suggestions would be appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top