<?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: Extra parenthesis added after saving file in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extra-parenthesis-added-after-saving-file/m-p/4068463#M161512</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="120776" data-lia-user-login="Artefact" class="lia-mention lia-mention-user"&gt;Artefact&lt;/a&gt;&amp;nbsp;, Try using Variables&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR AgeAverage = AVERAGE(workorder_time[Age in years])&lt;BR /&gt;VAR TotalSpent = [Total spent time]&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;OR (&lt;BR /&gt;AND (AgeAverage &amp;gt; 29, TotalSpent &amp;gt; 55),&lt;BR /&gt;AND (AgeAverage &amp;lt; 30, TotalSpent &amp;gt; 50)&lt;BR /&gt;),&lt;BR /&gt;"#4287f5"&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2024 06:53:08 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2024-07-30T06:53:08Z</dc:date>
    <item>
      <title>Extra parenthesis added after saving file</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extra-parenthesis-added-after-saving-file/m-p/4068338#M161508</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sometimes PBI adds a lot of extra parenthesis at the end of a DAX formula. Till now after copy paste the formula they don't show up again. But now PBI keeps adding them and returns an error on the formula. But only when I save the PBIX! So when applying the formula, it works fine, but after saving the file, PBI returns "hey your forumula has 3 extra parenthesis which don't belong there".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;And trust me , there's noting wrong with the formula, it works fine before saving. The error message shows 2 more parenthesis at the end, which PBI keeps adding when saving. And when I delete the last parenthesis in my formula, PBI just adds one more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;IF (&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; OR (&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AND ( AVERAGE ( workorder_time[Age in years] ) &amp;gt; 29, [Total spent time] &amp;gt; 55 ),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AND ( AVERAGE ( workorder_time[Age in years] ) &amp;lt; 30, [Total spent time] &amp;gt; 50 )&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; ),&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; "#4287f5"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Result when saving :&lt;/P&gt;&lt;P&gt;IF &amp;lt;same formula&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"#4287f5"&amp;nbsp; ))) (2 too many)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 06:07:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extra-parenthesis-added-after-saving-file/m-p/4068338#M161508</guid>
      <dc:creator>Artefact</dc:creator>
      <dc:date>2024-07-30T06:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Extra parenthesis added after saving file</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extra-parenthesis-added-after-saving-file/m-p/4068463#M161512</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="120776" data-lia-user-login="Artefact" class="lia-mention lia-mention-user"&gt;Artefact&lt;/a&gt;&amp;nbsp;, Try using Variables&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR AgeAverage = AVERAGE(workorder_time[Age in years])&lt;BR /&gt;VAR TotalSpent = [Total spent time]&lt;BR /&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;OR (&lt;BR /&gt;AND (AgeAverage &amp;gt; 29, TotalSpent &amp;gt; 55),&lt;BR /&gt;AND (AgeAverage &amp;lt; 30, TotalSpent &amp;gt; 50)&lt;BR /&gt;),&lt;BR /&gt;"#4287f5"&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 06:53:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extra-parenthesis-added-after-saving-file/m-p/4068463#M161512</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-07-30T06:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extra parenthesis added after saving file</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extra-parenthesis-added-after-saving-file/m-p/4068621#M161529</link>
      <description>&lt;P&gt;Hello Bhanu,&lt;BR /&gt;&lt;BR /&gt;Thank for your quick reply. But I get the same error when saving. Keeps adding extra parenthesis .&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 07:53:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extra-parenthesis-added-after-saving-file/m-p/4068621#M161529</guid>
      <dc:creator>artefarct</dc:creator>
      <dc:date>2024-07-30T07:53:39Z</dc:date>
    </item>
  </channel>
</rss>

