<?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: List of DAX functions that do not work in Direct Query in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-DAX-functions-that-do-not-work-in-Direct-Query/m-p/4679415#M179233</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569801" data-lia-user-login="mp390988" class="lia-mention lia-mention-user"&gt;mp390988&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the Microsoft fabric community forum.&lt;/P&gt;
&lt;P&gt;It looks like you are looking for all the&amp;nbsp;&lt;SPAN&gt;recent DAX functions that do not work in Direct Query mode. As&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="558108" data-lia-user-login="Shravan133" class="lia-mention lia-mention-user"&gt;Shravan133&lt;/a&gt;&amp;nbsp;already responded to your query, please go through his response and check if it answers your query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also take a moment to thank &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="558108" data-lia-user-login="Shravan133" class="lia-mention lia-mention-user"&gt;Shravan133&lt;/a&gt;, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Hammad.&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please mark it as a solution, so that other members find it more quickly.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 05 May 2025 05:55:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-05-05T05:55:30Z</dc:date>
    <item>
      <title>List of DAX functions that do not work in Direct Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-DAX-functions-that-do-not-work-in-Direct-Query/m-p/4678856#M179209</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know of list of recent DAX functions that do not work in Direct Query mode?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does it only take one of your tables in the model to be Direct Query and lets say rest are left as Import for the DAX to stop working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 04 May 2025 10:41:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-DAX-functions-that-do-not-work-in-Direct-Query/m-p/4678856#M179209</guid>
      <dc:creator>mp390988</dc:creator>
      <dc:date>2025-05-04T10:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: List of DAX functions that do not work in Direct Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-DAX-functions-that-do-not-work-in-Direct-Query/m-p/4679052#M179218</link>
      <description>&lt;P&gt;Conceptual questions like this can be answered by chatgpt or google &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Answers to Your Questions&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt; Is there a list of recent DAX functions that do not work in DirectQuery mode?&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Microsoft &lt;STRONG&gt;does not maintain a complete public list&lt;/STRONG&gt; of non-supported DAX functions in DirectQuery mode &lt;STRONG&gt;as of 2025&lt;/STRONG&gt;, but here’s a list of functions and constructs that are &lt;STRONG&gt;known to be restricted&lt;/STRONG&gt; or &lt;STRONG&gt;partially supported&lt;/STRONG&gt; in DirectQuery (and often fail silently or return wrong results):&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt; DAX functions/features with known limitations in DirectQuery:&lt;/STRONG&gt;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;Category&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;Examples&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;Notes&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;Iterator functions&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;SUMX, AVERAGEX, FILTER inside calculated columns&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Allowed in measures, but usage is restricted or sub-optimal in calculated columns or calculated tables&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;Time intelligence&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;SAMEPERIODLASTYEAR, PARALLELPERIOD, DATESYTD, DATESMTD, DATEADD, etc.&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;Only work&lt;/STRONG&gt; if a proper Date table is marked and &lt;STRONG&gt;fully imported&lt;/STRONG&gt;.&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;Calculated tables&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Any ADDCOLUMNS, GENERATE, CROSSJOIN, etc.&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Not supported when dependent on DirectQuery tables&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;Relationship functions&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;USERELATIONSHIP, TREATAS&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Work in many cases, but sometimes break with composite models&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;Ranking functions&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;RANKX&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Can fail or give poor performance in DirectQuery-only context&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;Advanced math / stats&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;MEDIANX, PERCENTILEX.INC, GEOMEANX, etc.&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Often unsupported or returns errors&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;Custom aggregations&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;VAR, complex nested IF/SWITCH logic&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Might get rewritten poorly or result in "Can't display visual"&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;IN operator&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;'Table'[Col] IN { "A", "B" }&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;This is &lt;STRONG&gt;not&lt;/STRONG&gt; supported in DirectQuery to most sources (especially SQL Server)&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;STRONG&gt;Virtual tables in measures&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;SELECTCOLUMNS, UNION, EXCEPT&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;Can result in query folding failures or unsupported queries&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":magnifying_glass_tilted_left:"&gt;🔍&lt;/span&gt; The problem is that even when DAX "works", the generated SQL may be too complex or invalid — leading to errors or blank visuals.&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI&gt;&lt;STRONG&gt; If one table is in DirectQuery mode, does that affect the whole model’s DAX support?&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;STRONG&gt;Yes — to a significant extent.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In &lt;STRONG&gt;composite models (Import + DirectQuery)&lt;/STRONG&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;If your &lt;STRONG&gt;measure or visual uses even one column from a DirectQuery table&lt;/STRONG&gt;, the &lt;STRONG&gt;entire DAX query runs in DirectQuery mode&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;This limits what DAX functions can be used — &lt;STRONG&gt;even if most of your tables are Import&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Also, some features like &lt;STRONG&gt;Auto Date/Time&lt;/STRONG&gt;, or certain calculated columns &lt;STRONG&gt;cannot reference DirectQuery tables at all&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Think of DirectQuery tables as "contaminating" any expression they touch — Power BI can't mix-and-match processing engines easily.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":wrench:"&gt;🔧&lt;/span&gt; Recommendations&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Offload logic to the source&lt;/STRONG&gt; if possible: Use SQL views or pre-aggregated tables for expensive DAX.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Import lookup/dimension tables&lt;/STRONG&gt; when using DirectQuery for fact tables.&lt;/LI&gt;
&lt;LI&gt;Use &lt;STRONG&gt;Hybrid Tables&lt;/STRONG&gt; if using Premium or Fabric for recent + historical data split.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Sun, 04 May 2025 22:35:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-DAX-functions-that-do-not-work-in-Direct-Query/m-p/4679052#M179218</guid>
      <dc:creator>Shravan133</dc:creator>
      <dc:date>2025-05-04T22:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: List of DAX functions that do not work in Direct Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-DAX-functions-that-do-not-work-in-Direct-Query/m-p/4679415#M179233</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569801" data-lia-user-login="mp390988" class="lia-mention lia-mention-user"&gt;mp390988&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to the Microsoft fabric community forum.&lt;/P&gt;
&lt;P&gt;It looks like you are looking for all the&amp;nbsp;&lt;SPAN&gt;recent DAX functions that do not work in Direct Query mode. As&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="558108" data-lia-user-login="Shravan133" class="lia-mention lia-mention-user"&gt;Shravan133&lt;/a&gt;&amp;nbsp;already responded to your query, please go through his response and check if it answers your query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would also take a moment to thank &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="558108" data-lia-user-login="Shravan133" class="lia-mention lia-mention-user"&gt;Shravan133&lt;/a&gt;, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Hammad.&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps then please mark it as a solution, so that other members find it more quickly.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 05:55:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-DAX-functions-that-do-not-work-in-Direct-Query/m-p/4679415#M179233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-05T05:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: List of DAX functions that do not work in Direct Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-DAX-functions-that-do-not-work-in-Direct-Query/m-p/4687369#M179515</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569801" data-lia-user-login="mp390988" class="lia-mention lia-mention-user"&gt;mp390988&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;As we haven’t heard back from you, so just following up to our previous message. I'd like to confirm if you've successfully resolved this issue or if you need further help.&lt;/P&gt;
&lt;P&gt;If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.&lt;BR /&gt;Thank you for your patience and look forward to hearing from you.&lt;/P&gt;</description>
      <pubDate>Sat, 10 May 2025 08:58:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-DAX-functions-that-do-not-work-in-Direct-Query/m-p/4687369#M179515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-10T08:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: List of DAX functions that do not work in Direct Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-DAX-functions-that-do-not-work-in-Direct-Query/m-p/4691820#M179664</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569801" data-lia-user-login="mp390988" class="lia-mention lia-mention-user"&gt;mp390988&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution so that other community members can find it easily.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 06:21:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-DAX-functions-that-do-not-work-in-Direct-Query/m-p/4691820#M179664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-14T06:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: List of DAX functions that do not work in Direct Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-DAX-functions-that-do-not-work-in-Direct-Query/m-p/4699283#M180006</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569801" data-lia-user-login="mp390988" class="lia-mention lia-mention-user"&gt;mp390988&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 05:38:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/List-of-DAX-functions-that-do-not-work-in-Direct-Query/m-p/4699283#M180006</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-20T05:38:46Z</dc:date>
    </item>
  </channel>
</rss>

