Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Powershell group object return count as an array instead of as an integer

$
0
0

Hi everyone,

I'm trying to graph some information using powershell, but I've hit a wall. I have an array named $phoneIssues, which holds tickets with the category of Phone Issues marked. What I would like to do is create a graph where the X axis is the date and the Y axis is the number of tickets submitted.

Using a few commands, I can format the data nicely as a table like this:

$phoneIssue.created_at.toshortdatestring() | Group-Object

Which returns this table:

Count Name Group
----- ---- -----
1 8/29/2016 {8/29/2016}
1 8/30/2016 ...


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>