<?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: Dax formatting question/short lines/long lines in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formatting-question-short-lines-long-lines/m-p/1804808#M38101</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="287137" data-lia-user-login="Applicable88" class="lia-mention lia-mention-user"&gt;Applicable88&lt;/a&gt; , to me second and third are the same and not correct calculations. Not very clear what is the issue &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer&lt;/P&gt;
&lt;P&gt;&lt;A href="http://dataap.org/blog/2019/04/22/difference-between-calculate-with-and-without-filter-expression/" target="_blank"&gt;http://dataap.org/blog/2019/04/22/difference-between-calculate-with-and-without-filter-expression/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://radacad.com/sum-vs-sumx-what-is-the-difference-of-the-two-dax-functions-in-power-bi" target="_blank"&gt;https://radacad.com/sum-vs-sumx-what-is-the-difference-of-the-two-dax-functions-in-power-bi&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Apr 2021 03:16:15 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-04-26T03:16:15Z</dc:date>
    <item>
      <title>Dax formatting question/short lines/long lines</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formatting-question-short-lines-long-lines/m-p/1804303#M38088</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I learned the hard way that writing dax in a readable way is a must!&lt;/P&gt;&lt;P&gt;I recently stumbled about a difference in dax for longlines depeding on function. I'm looking for consistency so I hope someone has the answer here. As a guiding convention on the daxformatters-website as&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="41" data-lia-user-login="marcorusso" class="lia-mention lia-mention-user"&gt;marcorusso&lt;/a&gt;&amp;nbsp;explained: If the function-call has more than two arguments than put it in a new line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this function long line and short line seems to be the same. Its always like that:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Test&amp;nbsp;=&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN class="Keyword"&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;SUM&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;Sales[Sales&amp;nbsp;Amount]&amp;nbsp;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;REMOVEFILTERS&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;'Sales&amp;nbsp;Order'[Channel]&amp;nbsp;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Parenthesis"&gt;Now just for fun we replace the Calculate function with a DIVIDE-function in Long Line:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Parenthesis"&gt;Test =&lt;BR /&gt;&lt;STRONG&gt;DIVIDE ( SUM ( Sales[Sales Amount] ), REMOVEFILTERS ( 'Sales Order'[Channel] ) )&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Parenthesis"&gt;And in short line as expected:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Parenthesis"&gt;&lt;STRONG&gt;Test =&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DIVIDE (&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SUM ( Sales[Sales Amount] ),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;REMOVEFILTERS ( 'Sales Order'[Channel] )&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Parenthesis"&gt;So does anybody knows why Calculate function looks always like the first example and with divide (also tried same with sumx) has the expected long and short versions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Parenthesis"&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Parenthesis"&gt;Best.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Apr 2021 14:13:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formatting-question-short-lines-long-lines/m-p/1804303#M38088</guid>
      <dc:creator>Applicable88</dc:creator>
      <dc:date>2021-04-25T14:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dax formatting question/short lines/long lines</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formatting-question-short-lines-long-lines/m-p/1804808#M38101</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="287137" data-lia-user-login="Applicable88" class="lia-mention lia-mention-user"&gt;Applicable88&lt;/a&gt; , to me second and third are the same and not correct calculations. Not very clear what is the issue &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer&lt;/P&gt;
&lt;P&gt;&lt;A href="http://dataap.org/blog/2019/04/22/difference-between-calculate-with-and-without-filter-expression/" target="_blank"&gt;http://dataap.org/blog/2019/04/22/difference-between-calculate-with-and-without-filter-expression/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://radacad.com/sum-vs-sumx-what-is-the-difference-of-the-two-dax-functions-in-power-bi" target="_blank"&gt;https://radacad.com/sum-vs-sumx-what-is-the-difference-of-the-two-dax-functions-in-power-bi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 03:16:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-formatting-question-short-lines-long-lines/m-p/1804808#M38101</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-04-26T03:16:15Z</dc:date>
    </item>
  </channel>
</rss>

