<?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: PowerShell Export-Csv not as expected in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Export-Csv-not-as-expected/m-p/1565865#M26856</link>
    <description>&lt;P&gt;Generally you don't want to use Export-Csv - Write-Output&amp;nbsp; gives you better control over the result, especially for true CSV files.&lt;/P&gt;
&lt;P&gt;But if you're sticking with Export-Csv, read this article&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://devblogs.microsoft.com/powershell/why-cant-i-pipe-format-table-to-export-csv-and-get-something-useful/" target="_blank"&gt;Why Can’t I Pipe Format-Table to Export-Csv (and get something useful)? | PowerShell (microsoft.com)&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Dec 2020 20:00:29 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2020-12-22T20:00:29Z</dc:date>
    <item>
      <title>PowerShell Export-Csv not as expected</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Export-Csv-not-as-expected/m-p/1564754#M26842</link>
      <description>&lt;P&gt;hello, i am trying to export results as a table to a csv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Get-PowerBIWorkspace | Format-table | Export-Csv C:\Users\spaldg\Downloads\wksp.csv -NoTypeInformation&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when displayed on screen (without the Export) it looks fine&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen.png" style="width: 631px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/421559i16A34153FDEB8B14/image-size/large?v=v2&amp;amp;px=999" role="button" title="screen.png" alt="screen.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when saved as a .csv, this is what i get&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="file.png" style="width: 372px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/421560i03B4BE759CB2DD13/image-size/large?v=v2&amp;amp;px=999" role="button" title="file.png" alt="file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what am i doing wrong ?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;g&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 09:33:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Export-Csv-not-as-expected/m-p/1564754#M26842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-22T09:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell Export-Csv not as expected</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Export-Csv-not-as-expected/m-p/1565865#M26856</link>
      <description>&lt;P&gt;Generally you don't want to use Export-Csv - Write-Output&amp;nbsp; gives you better control over the result, especially for true CSV files.&lt;/P&gt;
&lt;P&gt;But if you're sticking with Export-Csv, read this article&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://devblogs.microsoft.com/powershell/why-cant-i-pipe-format-table-to-export-csv-and-get-something-useful/" target="_blank"&gt;Why Can’t I Pipe Format-Table to Export-Csv (and get something useful)? | PowerShell (microsoft.com)&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 20:00:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Export-Csv-not-as-expected/m-p/1565865#M26856</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-12-22T20:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell Export-Csv not as expected</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Export-Csv-not-as-expected/m-p/1571835#M26912</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please update the command line as follow and check whether you can get what you want:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&lt;STRONG&gt;Get-PowerBIWorkspace | Format-table | Export-Csv &lt;FONT color="#FF0000"&gt;-Path&lt;/FONT&gt; C:\Users\spaldg\Downloads\wksp.csv -NoTypeInformation &lt;FONT color="#FF0000"&gt;-Delim ";"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/export-csv?view=powershell-7.1" target="_self"&gt;&lt;STRONG&gt;Export-Csv&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 09:21:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerShell-Export-Csv-not-as-expected/m-p/1571835#M26912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-28T09:21:23Z</dc:date>
    </item>
  </channel>
</rss>

