Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Is there a better way to do this? Perhaps @Hashtable?
Post Flair (click to view more posts with a particular flair)
Post Body

Right now I have this little pipe going and it works,

$Result = $Var | Where-Object ... | Sort-Object ... | Group-Object ... | Select-Object ...

Currently I import an excel using import-excel and I set a column header to another var because it has a space in it and to get the where script block to work I had to do that.

What I'm wondering is this, can I create a hashtable /function block to set variables as needed and put multiple where queries for better readability? Most everything I found concerning hashtables involves loading an array into one or using a loop to process an array into a hashtable with filters but I'm dealing with a 20mb excel that I just want to filter and count grouped values. Am I one the right/wrong train of thought here?

ie $ColumnXY -Match 'This'

$ColumnJ -NotMatch 'That'

and so on.

More info:

$OSV="Column With Spaces"

`$Test3 = $Data | Where-Object -Property $OSV -Match 'Windows' ``

| Sort-Object -Property $OSV | Group-Object $OSV | Select-Object -Property Name,Count

Update: Thanks to u/Lee_Dailey that was exactly what I was hoping for.

Author
Account Strength
90%
Account Age
9 years
Verified Email
Yes
Verified Flair
No
Total Karma
4,174
Link Karma
215
Comment Karma
3,959
Profile updated: 3 days ago
Posts updated: 3 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
5 years ago