<?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 Tabular Editor Scripting - &amp;quot;Do Not Summarize&amp;quot; in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Tabular-Editor-Scripting-quot-Do-Not-Summarize-quot/m-p/1618330#M27449</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Trying to create a Custom Script under Advanced Scripting in the Tabular Editor to Set Column Summarization to "Do Not Summarise" for all selected columns.&lt;BR /&gt;The code I have is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;foreach(var c in Selected.Columns)
{
    c.SummarizeBy = "none";
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I am getting a data type error msg as follows:&lt;BR /&gt;&lt;STRONG&gt;CS0029 - cannot implicitly convert type "string" to TabularEditor.TOMWrapper.AggregateFunction&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Any assistance to get this working will be much appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Jan 2021 18:30:26 GMT</pubDate>
    <dc:creator>VarcharBI</dc:creator>
    <dc:date>2021-01-23T18:30:26Z</dc:date>
    <item>
      <title>Tabular Editor Scripting - "Do Not Summarize"</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Tabular-Editor-Scripting-quot-Do-Not-Summarize-quot/m-p/1618330#M27449</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Trying to create a Custom Script under Advanced Scripting in the Tabular Editor to Set Column Summarization to "Do Not Summarise" for all selected columns.&lt;BR /&gt;The code I have is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;foreach(var c in Selected.Columns)
{
    c.SummarizeBy = "none";
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I am getting a data type error msg as follows:&lt;BR /&gt;&lt;STRONG&gt;CS0029 - cannot implicitly convert type "string" to TabularEditor.TOMWrapper.AggregateFunction&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Any assistance to get this working will be much appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2021 18:30:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Tabular-Editor-Scripting-quot-Do-Not-Summarize-quot/m-p/1618330#M27449</guid>
      <dc:creator>VarcharBI</dc:creator>
      <dc:date>2021-01-23T18:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Tabular Editor Scripting - "Do Not Summarize"</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Tabular-Editor-Scripting-quot-Do-Not-Summarize-quot/m-p/1622853#M27498</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/202826"&gt;@VarcharBI&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Implicit column aggregations in Power BI are not supported for models with calculation groups. Currently, if&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;DiscourageImplicitMeasures&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;property is set to&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;false&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;(default), aggregation options appear, however they cannot be applied. If&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;DiscourageImplicitMeasures&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;is set to&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;true&lt;/STRONG&gt;&lt;SPAN&gt;, aggregation options do not appear.&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/analysis-services/tabular-models/calculation-groups?view=asallproducts-allversions#limitations" target="_self"&gt;https://docs.microsoft.com/en-us/analysis-services/tabular-models/calculation-groups?view=asallproducts-allversions#limitations&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 07:12:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Tabular-Editor-Scripting-quot-Do-Not-Summarize-quot/m-p/1622853#M27498</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2021-01-26T07:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Tabular Editor Scripting - "Do Not Summarize"</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Tabular-Editor-Scripting-quot-Do-Not-Summarize-quot/m-p/1624108#M27508</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi Liang - and thanks for responding...&lt;/P&gt;&lt;P&gt;That said I don't understand why or whether this answers the question... in so far as... all I am trying to do is to bypass a manual process in the Desktop of setting a Column attribute from Sum to Do Not Summarize using an Advanced Script in the Tabular Editor... and I get the same error whether I am connected to a model with or without Calculation Groups.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 16:03:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Tabular-Editor-Scripting-quot-Do-Not-Summarize-quot/m-p/1624108#M27508</guid>
      <dc:creator>VarcharBI</dc:creator>
      <dc:date>2021-01-26T16:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Tabular Editor Scripting - "Do Not Summarize"</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Tabular-Editor-Scripting-quot-Do-Not-Summarize-quot/m-p/1625868#M27524</link>
      <description>&lt;P&gt;Many many thanks to&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/68724"&gt;@dotykier&lt;/a&gt;&amp;nbsp;- the owner and originator of the Tabular Editor...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="pl-k"&gt;foreach&lt;/SPAN&gt;(&lt;SPAN class="pl-k"&gt;var&lt;/SPAN&gt; &lt;SPAN class="pl-smi"&gt;c&lt;/SPAN&gt; &lt;SPAN class="pl-k"&gt;in&lt;/SPAN&gt; &lt;SPAN class="pl-smi"&gt;Selected&lt;/SPAN&gt;.&lt;SPAN class="pl-smi"&gt;Columns&lt;/SPAN&gt;)
{
    &lt;SPAN class="pl-smi"&gt;c&lt;/SPAN&gt;.&lt;SPAN class="pl-smi"&gt;SummarizeBy&lt;/SPAN&gt; &lt;SPAN class="pl-k"&gt;=&lt;/SPAN&gt; &lt;SPAN class="pl-smi"&gt;AggregateFunction&lt;/SPAN&gt;.&lt;SPAN class="pl-smi"&gt;None&lt;/SPAN&gt;;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2021 10:34:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Tabular-Editor-Scripting-quot-Do-Not-Summarize-quot/m-p/1625868#M27524</guid>
      <dc:creator>VarcharBI</dc:creator>
      <dc:date>2021-01-27T10:34:29Z</dc:date>
    </item>
  </channel>
</rss>

