<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Size of values when i export CSV powershell in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Size-of-values-when-i-export-CSV-powershell/m-p/145915#M5929</link>
    <description>&lt;P&gt;you need to use custom select statements with convertto-formattednumber cmdlet or .net [math]:: functions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;select @{n='size';e={convertto-formattednumber $_.total datasize "0.0"}}&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jan 2019 15:56:19 GMT</pubDate>
    <dc:creator>JGPSHNTAP</dc:creator>
    <dc:date>2019-01-15T15:56:19Z</dc:date>
    <item>
      <title>Size of values when i export CSV powershell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Size-of-values-when-i-export-CSV-powershell/m-p/145914#M5928</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i need to see the size of all snapshot, on all volumes.&lt;/P&gt;
&lt;P&gt;I usthis command in powershell cli :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Get-NaVol vol* | Get-NaSnapshot | select TargetName,Name,Created,Total,CumulativeTotal,Dependency | ft -AutoSize&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output is good and in GB size for values Total and CumulativeTotal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I try this command to export in CSV :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Get-NaVol vol* | Get-NaSnapshot | select TargetName,Name,Created,Total,CumulativeTotal,Dep&lt;/SPAN&gt;&lt;SPAN&gt;endency |&amp;nbsp;export-csv &amp;lt;mypath&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when i try to export the output in CSV, the value of Total and CumulativeTotal appears in byte in my CSV file.&lt;/P&gt;
&lt;P&gt;Someone can help me ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 12:57:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Size-of-values-when-i-export-CSV-powershell/m-p/145914#M5928</guid>
      <dc:creator>anthony69300</dc:creator>
      <dc:date>2025-06-04T12:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Size of values when i export CSV powershell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Size-of-values-when-i-export-CSV-powershell/m-p/145915#M5929</link>
      <description>&lt;P&gt;you need to use custom select statements with convertto-formattednumber cmdlet or .net [math]:: functions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;select @{n='size';e={convertto-formattednumber $_.total datasize "0.0"}}&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 15:56:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Size-of-values-when-i-export-CSV-powershell/m-p/145915#M5929</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2019-01-15T15:56:19Z</dc:date>
    </item>
  </channel>
</rss>

