<?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 Query Performance Issue Help in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Query-Performance-Issue-Help/m-p/1874907#M40221</link>
    <description>&lt;P&gt;Building temp table with required column helped to achieve desired performance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your inputs.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jun 2021 10:25:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-01T10:25:25Z</dc:date>
    <item>
      <title>DAX Query Performance Issue Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Query-Performance-Issue-Help/m-p/1864958#M39956</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my DAX measure and its taking almost 26 sec to return the data, please help to optimize&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MEASURE 'Cntrl ETLControlTable'[ShippedTenderedCountNew1] = 
    (/* USER DAX BEGIN */

var _getdate= MAX(Inv_Dim_LinkDate_FactInv[DimLinkDate])
return
CALCULATE (
  DISTINCTCOUNT(Inv_Fact_Inventory[CURINV_CARGO_ID] )
  ,Inv_Fact_Inventory[Dashboard] = "Current Inventory NEW"
  ,Inv_Fact_Inventory[Inv_LinkDate] &amp;lt; _getdate
  ,Inv_Fact_Inventory[Ship Datee] &amp;gt;= _getdate
  ,REMOVEFILTERS(Inv_Dim_LinkDate_FactInv)
) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above measure plus there are four more default filters applied as (from filter pane) and i'm trying to fetch the result for Rail Head 004&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR __DS0FilterTable = 
    FILTER(
      KEEPFILTERS(VALUES('Inv_Fact_Inventory'[CARRIER TYPE])),
      NOT('Inv_Fact_Inventory'[CARRIER TYPE] IN {BLANK()})
    )

  VAR __DS0FilterTable2 = 
    FILTER(
      KEEPFILTERS(VALUES('Inv_Dim_LinkDate_FactInv'[DimLinkDate])),
      NOT(ISBLANK('Inv_Dim_LinkDate_FactInv'[DimLinkDate]))
    )

  VAR __DS0FilterTable3 = 
    TREATAS({14}, 'vNoDays'[vNoDays])

  VAR __DS0FilterTable4 = 
    TREATAS({"Shipped Inventory"}, 'Inv_Fact_Inventory'[Dashboard])

  VAR __DS0FilterTable5 = 
    TREATAS({"004"}, 'Inv_Fact_Inventory'[Rail Head])&lt;/LI-CODE&gt;&lt;P&gt;Here is the statistics capture from server&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to fix the performance issue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 12:41:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Query-Performance-Issue-Help/m-p/1864958#M39956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-26T12:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Query Performance Issue Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Query-Performance-Issue-Help/m-p/1865903#M39976</link>
      <description>&lt;P&gt;So we can't really tell much about the query structure with out the full picture of the server timing window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;how many SQL subclass are being generated?&lt;/P&gt;&lt;P&gt;do you have CALLBACKS? etc&lt;BR /&gt;from what I can see you are spending way too much time in the formula engine. How big and how many columns is the Inv_Fact_Inventory table? if it is large you could consider building a temp table on the fly with only the columns you need pulling in specific columns as necessary from related tables. then write your queries to hit that temp table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 23:09:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Query-Performance-Issue-Help/m-p/1865903#M39976</guid>
      <dc:creator>bvilten</dc:creator>
      <dc:date>2021-05-26T23:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Query Performance Issue Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Query-Performance-Issue-Help/m-p/1874907#M40221</link>
      <description>&lt;P&gt;Building temp table with required column helped to achieve desired performance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your inputs.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 10:25:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Query-Performance-Issue-Help/m-p/1874907#M40221</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-01T10:25:25Z</dc:date>
    </item>
  </channel>
</rss>

