Skip to content
Menu
The Lonely Administrator
  • PowerShell Tips & Tricks
  • Books & Training
  • Essential PowerShell Learning Resources
  • Privacy Policy
  • About Me
The Lonely Administrator

PowerShell Pivot Tables Revisited

Posted on September 26, 2015

A few years ago I wrote a PowerShell function to create an Excel-like pivot table in a PowerShell console. The other day I decided to revisit the function. I was surprised that it didn't really need too much updating but I did spend some time updating the documentation and adding one new feature.

The function now allows you to sort your results. This is especially handy when creating a table with Count or Sum values. You can sort on the value or the property name.

I also turned the function into a module, added an alias and published it to my GitHub repository. I hope you'll let me know what you think and especially how you end up using it.

Share this:

  • Print (Opens in new window) Print

Like this:

Like Loading…

Related

2 thoughts on “PowerShell Pivot Tables Revisited”

  1. Mike Shepard says:
    September 26, 2015 at 2:49 pm

    Thanks for sharing this. I’ve been using SQL pivot tables in a project lately and this might come in handy.

  2. Kevin D says:
    September 30, 2015 at 12:34 pm

    This has already proven quite useful. Thank you!

Comments are closed.

The PowerShell Practice Primer
Learn PowerShell in a Month of Lunches Fourth edition


Get More PowerShell Books

Other Online Content

github



PluralSightAuthor

Active Directory ADSI Automation Backup Books CIM CLI conferences console Friday Fun FridayFun Function functions Get-WMIObject GitHub hashtable HTML Hyper-V Iron Scripter ISE Measure-Object module modules MrRoboto new-object objects Out-Gridview Pipeline PowerShell PowerShell ISE Profile prompt Registry Regular Expressions remoting SAPIEN ScriptBlock Scripting Techmentor Training VBScript WMI WPF Write-Host xml

©2026 The Lonely Administrator | Powered by SuperbThemes!
%d