<?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 DAX performance issue in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-performance-issue/m-p/1524510#M29805</link>
    <description>&lt;P&gt;Hello Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a report and I have difficulties to show some Amounts. The problem is due to a measure that I have developed and it is causing the problem. below is the formula that I'm using :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="tw-ta-container hide-focus-ring tw-nfl"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="tw-ta-container hide-focus-ring tw-nfl"&gt;&lt;PRE&gt;Amount = &lt;BR /&gt;VAR Main_Account_V2=ALLEXCEPT(Transaction,Transaction[MainAccount],MainAccount[Libellé de compte],'Transaction DataArea'[Entité Juridique])&lt;BR /&gt;VAR Min_Date_V2=CALCULATE(MIN(Transaction[AccountingDate]),ALLSELECTED(Transaction))&lt;BR /&gt;VAR AmountV2=CALCULATE(SUM(Transaction[AccountingAmountDebit])-SUM(Transaction[AccountingAmountCredit]),Main_Account_V2,FILTER(ALL(Transaction[AccountingDate]),Transaction[AccountingDate]&amp;gt;=Min_Date_V2),FILTER(ALL(Transaction[Concat_ID]),Transaction[Concat_ID]&amp;lt;=MAX(Transaction[Concat_ID])))&lt;BR /&gt;Return&lt;BR /&gt;IF(AmountV2=BLANK(),[OpeningBalance],AmountV2+[OpeningBalance])&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class="gt-is"&gt;&lt;DIV&gt;&lt;SPAN&gt;and it's doing this problem on my report. So I cant see the data on the table chart !!! (I circled it in yellow)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="jhH5U"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And when I deselect the display measure I can see what I am displaying. bellow the capture...&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Any ideas to solve this problem? Any solution to suggest?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 15:10:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-30T15:10:35Z</dc:date>
    <item>
      <title>DAX performance issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-performance-issue/m-p/1524510#M29805</link>
      <description>&lt;P&gt;Hello Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a report and I have difficulties to show some Amounts. The problem is due to a measure that I have developed and it is causing the problem. below is the formula that I'm using :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="tw-ta-container hide-focus-ring tw-nfl"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="tw-ta-container hide-focus-ring tw-nfl"&gt;&lt;PRE&gt;Amount = &lt;BR /&gt;VAR Main_Account_V2=ALLEXCEPT(Transaction,Transaction[MainAccount],MainAccount[Libellé de compte],'Transaction DataArea'[Entité Juridique])&lt;BR /&gt;VAR Min_Date_V2=CALCULATE(MIN(Transaction[AccountingDate]),ALLSELECTED(Transaction))&lt;BR /&gt;VAR AmountV2=CALCULATE(SUM(Transaction[AccountingAmountDebit])-SUM(Transaction[AccountingAmountCredit]),Main_Account_V2,FILTER(ALL(Transaction[AccountingDate]),Transaction[AccountingDate]&amp;gt;=Min_Date_V2),FILTER(ALL(Transaction[Concat_ID]),Transaction[Concat_ID]&amp;lt;=MAX(Transaction[Concat_ID])))&lt;BR /&gt;Return&lt;BR /&gt;IF(AmountV2=BLANK(),[OpeningBalance],AmountV2+[OpeningBalance])&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class="gt-is"&gt;&lt;DIV&gt;&lt;SPAN&gt;and it's doing this problem on my report. So I cant see the data on the table chart !!! (I circled it in yellow)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="jhH5U"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And when I deselect the display measure I can see what I am displaying. bellow the capture...&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Any ideas to solve this problem? Any solution to suggest?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 15:10:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-performance-issue/m-p/1524510#M29805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-30T15:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: DAX performance issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-performance-issue/m-p/1524724#M29820</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd need to see the model to be able to give a more accurate answer. Can you share the pbix (by PM if necessary)?&lt;/P&gt;
&lt;P&gt;In the meantime, I don't think it will make a massive difference but try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Amount =
VAR Main_Account_V2 =
    ALLEXCEPT (
        Transaction,
        Transaction[MainAccount],
        MainAccount[Libellé de compte],
        'Transaction DataArea'[Entité Juridique]
    )
VAR Min_Date_V2 =
    CALCULATE ( MIN ( Transaction[AccountingDate] ), ALLSELECTED ( Transaction ) )
VAR maxConcat_ID_ =
    MAX ( Transaction[Concat_ID] )
VAR AmountV2 =
    CALCULATE (
        SUM ( Transaction[AccountingAmountDebit] )
            - SUM ( Transaction[AccountingAmountCredit] ),
        Main_Account_V2,
        FILTER (
            ALL ( Transaction[AccountingDate] ),
            Transaction[AccountingDate] &amp;gt;= Min_Date_V2
        ),
        FILTER (
            ALL ( Transaction[Concat_ID] ),
            Transaction[Concat_ID] &amp;lt;= maxConcat_ID_
        )
    )
RETURN
    [OpeningBalance]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 17:26:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-performance-issue/m-p/1524724#M29820</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-11-30T17:26:31Z</dc:date>
    </item>
  </channel>
</rss>

