<?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: Automate a calculated column with PowerShell in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Automate-a-calculated-column-with-PowerShell/m-p/3125823#M41687</link>
    <description>&lt;P&gt;That's more something you would do with ALM Toolkit or Tabular Editor. You can ask them to script the action and then "borrow"&amp;nbsp; the XMLA and reuse it in your Powershell scripts.&lt;/P&gt;</description>
    <pubDate>Sun, 12 Mar 2023 02:01:40 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2023-03-12T02:01:40Z</dc:date>
    <item>
      <title>Automate a calculated column with PowerShell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Automate-a-calculated-column-with-PowerShell/m-p/3122688#M41663</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to automate a PowerBi report that I have published that uses parameters to change the values for data coming from AzureBlobs.&amp;nbsp; I have one report and I'm using powershell to deploy changes to various workspaces such as changing the title of the report. However, I have a calculated called Area (below) that checks for specific strings in another column and renames them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Area = &lt;/SPAN&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;T&lt;/SPAN&gt;&lt;SPAN&gt;RUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DI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&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Since, I'm using multiple datasources and expect this column to change from time to time with different values thus the calculation must be done on the fly. How can I calcucate this field either using PowerShell or within PowerBI or any other suggestions?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Marl&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 23:27:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Automate-a-calculated-column-with-PowerShell/m-p/3122688#M41663</guid>
      <dc:creator>mm456</dc:creator>
      <dc:date>2023-03-09T23:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Automate a calculated column with PowerShell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Automate-a-calculated-column-with-PowerShell/m-p/3125823#M41687</link>
      <description>&lt;P&gt;That's more something you would do with ALM Toolkit or Tabular Editor. You can ask them to script the action and then "borrow"&amp;nbsp; the XMLA and reuse it in your Powershell scripts.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2023 02:01:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Automate-a-calculated-column-with-PowerShell/m-p/3125823#M41687</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-03-12T02:01:40Z</dc:date>
    </item>
  </channel>
</rss>

