With Realtime you get only data for the last hour and with Historical Interval 1 only for the last day.
Have a look at PowerCLI & vSphere statistics – Part 1 – The basics.
If you want to get the statistical data over intervals that do not correspond with the default intervals, have a look at PowerCLI & vSphere statistics – Part 2 – Come together.
The cmdlet you could use looks like this
Get-Stat -Start (Get-Date).adddays(-3) -Stat mem.usage.average -Entity (Get-VM -Name <vm-name>)
This will return data for 30-minute intervals since your start date falls in Historical Interval 2.
____________
Blog: LucD notes
Twitter: lucd22