<?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: Inefficient DAX Formula - need assistance please in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3709180#M144313</link>
    <description>&lt;P&gt;Apologies&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;, please see the below .pbix file with the correct measures located in the detail table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://rizon-my.sharepoint.com/:u:/g/personal/mitchell_luchterhand_rizon_com_au/EVmjZuOrHkNDu0on9k1S3FEBdpg2IfylqQCAKJf3r0ETQw?e=G4X16u" target="_blank"&gt;Measure Simplification (Sample).pbix&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2024 22:45:10 GMT</pubDate>
    <dc:creator>Mitchell92</dc:creator>
    <dc:date>2024-02-19T22:45:10Z</dc:date>
    <item>
      <title>Inefficient DAX Formula - need assistance please</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3702714#M144005</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just hoping to receive some assistance relating to a DAX formula that is causing a "Visual has exceeded the available resources" issue (seemingly due to inefficient formula).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short, what is happening is I have two tables - one matrix which is the "summary" table, and one table that is the "detail" table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The summary table has a list of names, and for this example, an average "contact time" and average "booking time". The detail table again has a list of names, further table details (i.e. create date, job no. etc) and the contact time and booking time. The issue I am facing is that when I filter a name on the summary table, the contact time (or booking time) does not load if that individiual only contacted or booked one of the events (i.e. person A contacted, person B booked). It simply returns a blank in one or the other column.. This is kind of expected, although I would like the time to show regardless.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The way I though about getting around this was removing the filter on the name if the result is a blank. This actually seemed to work for a split second, and then I received the error relating to available resources. This makes me believe the formula is quite inefficient - hoping to receive some tips!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula in question (contact time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AVERAGE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CONLINE&lt;/SPAN&gt;&lt;SPAN&gt;[CONTACTEDTIME]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;USERELATIONSHIP&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CONLINE&lt;/SPAN&gt;&lt;SPAN&gt;[EVENTREGUSER1100]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;EMPMASA&lt;/SPAN&gt;&lt;SPAN&gt;[EMF_USERID]&lt;/SPAN&gt;&lt;SPAN&gt;)) = &lt;/SPAN&gt;&lt;SPAN&gt;blank&lt;/SPAN&gt;&lt;SPAN&gt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lt;SPAN&gt;EMPMASA&lt;/SPAN&gt;&lt;SPAN&gt;[EMF_USERID]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 01:04:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3702714#M144005</guid>
      <dc:creator>Mitchell92</dc:creator>
      <dc:date>2024-02-16T01:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Inefficient DAX Formula - need assistance please</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3702853#M144013</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 02:46:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3702853#M144013</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-16T02:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Inefficient DAX Formula - need assistance please</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3702965#M144019</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pbix file located here:&amp;nbsp;&lt;A href="https://rizon-my.sharepoint.com/:u:/g/personal/mitchell_luchterhand_rizon_com_au/EYoxIZAMGZtIgBoR0B3r0_ABUsZif2ZcjH94tktYTCnA7A?e=S2itQo" target="_blank"&gt;Measure Simplification (Sample).pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is working in this document due to the heavily stripped back dataset. Hence why I think a simpler measure will be the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 03:51:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3702965#M144019</guid>
      <dc:creator>Mitchell92</dc:creator>
      <dc:date>2024-02-16T03:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Inefficient DAX Formula - need assistance please</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3704915#M144117</link>
      <description>&lt;P&gt;The highlighted columns are calculated columns, not measures.&amp;nbsp; Please clarify.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2024 01:44:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3704915#M144117</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-17T01:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Inefficient DAX Formula - need assistance please</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3709180#M144313</link>
      <description>&lt;P&gt;Apologies&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;, please see the below .pbix file with the correct measures located in the detail table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://rizon-my.sharepoint.com/:u:/g/personal/mitchell_luchterhand_rizon_com_au/EVmjZuOrHkNDu0on9k1S3FEBdpg2IfylqQCAKJf3r0ETQw?e=G4X16u" target="_blank"&gt;Measure Simplification (Sample).pbix&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 22:45:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3709180#M144313</guid>
      <dc:creator>Mitchell92</dc:creator>
      <dc:date>2024-02-19T22:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Inefficient DAX Formula - need assistance please</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3709209#M144315</link>
      <description>&lt;LI-CODE lang="markup"&gt;3.1 TIMETOCONTACT =
COALESCE (
    CALCULATE (
        AVERAGE ( CONLINE2[CONTACTEDTIME] ),
        USERELATIONSHIP ( CONLINE2[EVENTREGUSER1100], EMPMASA2[EMF_USERID] )
    ),
    CALCULATE (
        AVERAGE ( CONLINE2[CONTACTEDTIME] ),
        USERELATIONSHIP ( CONLINE2[EVENTREGUSER1100], EMPMASA2[EMF_USERID] ),
        REMOVEFILTERS ( EMPMASA2[FULL NAME] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;Not sure what else is going on in your data model but the relationships should be single directional.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Give it a whirl and see if this is any better. Note that I didn't touch 4.1 so you can compare.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next step would be to fire up DAX Studio and test the queries against the actual data .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 23:12:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3709209#M144315</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-19T23:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Inefficient DAX Formula - need assistance please</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3709243#M144317</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;, thank you. This formula definitely is more efficient - it is actually able to load!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem I am facing now is that the Detail table doesn't filter per the user summary selection. Ideally i'd like the Detail table to only show results of specifically selected users in the Summary table. I understand this is likely happening due to the inclusion of both filtered and non-filtered results... so wondering if there is any crafty way around this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example below of issue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 23:37:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3709243#M144317</guid>
      <dc:creator>Mitchell92</dc:creator>
      <dc:date>2024-02-19T23:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Inefficient DAX Formula - need assistance please</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3709252#M144318</link>
      <description>&lt;P&gt;You made the relationships inactive, so you have to carry that filter yourself, via TREATAS.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 23:48:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3709252#M144318</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-19T23:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Inefficient DAX Formula - need assistance please</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3709291#M144321</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;, would you happen to be able to provide a DAX example for this case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 00:33:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3709291#M144321</guid>
      <dc:creator>Mitchell92</dc:creator>
      <dc:date>2024-02-20T00:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Inefficient DAX Formula - need assistance please</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3709426#M144328</link>
      <description>&lt;P&gt;Please provide sample data &lt;STRONG&gt;that fully covers your issue&lt;/STRONG&gt;.&lt;BR /&gt;Please show the expected outcome based on the sample data you provided.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 01:58:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Inefficient-DAX-Formula-need-assistance-please/m-p/3709426#M144328</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-20T01:58:37Z</dc:date>
    </item>
  </channel>
</rss>

