<?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 optimization problem in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-optimization-problem/m-p/4740409#M181555</link>
    <description>&lt;P&gt;Hey,&lt;BR /&gt;&lt;BR /&gt;Thanks for replying. But, I think you have just formatted the same measures. Only change I see is in the second measure where you have added a new variable. Could you please tell if I am missing something?&lt;BR /&gt;&lt;BR /&gt;Also, could you please edit your message to replace the table name with 'Table' for security reasons. My bad.. I mentioned it earlier in the main question&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jun 2025 08:52:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-06-23T08:52:15Z</dc:date>
    <item>
      <title>DAX optimization problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-optimization-problem/m-p/4740345#M181546</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a report with a single table visual which has some 170 columns (including measures).&amp;nbsp;&lt;BR /&gt;The data that I am getting is like following-&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Month_Year&lt;/TD&gt;&lt;TD&gt;KPI1&lt;/TD&gt;&lt;TD&gt;KPI2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Jan-2025&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Feb-2025&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Apr-2025&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, based on this data and two filters (From Month and To Month), I am creating some measures to show the final data as&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;KPI1&lt;/TD&gt;&lt;TD&gt;KPI2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Sum of values between selected months&lt;/TD&gt;&lt;TD&gt;Some logic defined below&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Some of the measures are normal&lt;/STRONG&gt; -&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;FromMonth&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'From-Month/YearMaster'&lt;/SPAN&gt;&lt;SPAN&gt;[FromMonthYearKey]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;ToMonth&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'To-Month/YearMaster'&lt;/SPAN&gt;&lt;SPAN&gt;[ToMonthYearKey]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[KPI1]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[MonthYearKey]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;FromMonth&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[PostingMonthYearKey]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;ToMonth&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Some other measures are as per below logic&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Opening KPI2 =&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;filteredTable&lt;/SPAN&gt;&lt;S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t;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;ASC&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;SPAN&gt;Here, we just need to pick up the first value from the table after filtering from From Month.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When all these KPIs are viewed together in one visual, it is taking a lot of memory and giving the Resources exceeded error.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;Do you have any suggestions to optimize these measures?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;One more thing, there is one more filter applied on the visual. Let me explain that logic as well:&lt;BR /&gt;There can be 3 statuses for 1 ID. Status A is fine. But, if the status is B or C, then you need to show only those IDs where the Status_Date is between selected From and To months.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;For that I have applied following filter:&lt;BR /&gt;Date_Filter =&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;FromMonth&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'From-Month/YearMaster'&lt;/SPAN&gt;&lt;SPAN&gt;[FromMonthYearKey]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;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;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(stat_date&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;FromMonth&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; stat_date&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;ToMonth&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any idea on optimizing this also?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Premium capacity is not being considered by the management and asking to optimize this as much as possible&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Jun 2025 08:49:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-optimization-problem/m-p/4740345#M181546</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-06-23T08:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX optimization problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-optimization-problem/m-p/4740385#M181550</link>
      <description>&lt;P&gt;&amp;nbsp;Optimized Sum Measurevar FromMonth = MAX('From-Month/YearMaster'[FromMonthYearKey])&lt;BR /&gt;var ToMonth = MAX('To-Month/YearMaster'[ToMonthYearKey])&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM('Table'[KPI1]),&lt;BR /&gt;'Table'[MonthYearKey] &amp;gt;= FromMonth,&lt;BR /&gt;'Table'[MonthYearKey] &amp;lt;= ToMonth&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;H3 class=""&gt;Optimized Opening KPI2 Measure&lt;/H3&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class="" tabindex="-1" role="region" data-notebook-cell="true" data-testid="notebook-cell-container" aria-label="Cell 0"&gt;
&lt;DIV class=""&gt;
&lt;DIV data-testid="assistant-panel-code-block"&gt;
&lt;DIV class="" data-notebook-cell-toolbar-sticky="true"&gt;
&lt;DIV data-virtualized="true"&gt;
&lt;DIV class="" data-testid="notebook-cell-toolbar"&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;DAX&lt;BR /&gt;var FromMonth = MAX('From-Month/YearMaster'[FromMonthYearKey])&lt;BR /&gt;var filteredTable = FILTER('Table', 'Table'[MonthYearKey] &amp;gt;= FromMonth)&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAX('Table'[Opening WIP Expense]),&lt;BR /&gt;TOPN(1, filteredTable, 'Table'[MonthYearKey], ASC)&lt;BR /&gt;)
&lt;DIV class=""&gt;&amp;nbsp;
&lt;DIV class=""&gt;Optimized Date Filter Measure
&lt;DIV class=""&gt;DAX&lt;BR /&gt;var FromMonth = MAX('From-Month/YearMaster'[FromMonthYearKey])&lt;BR /&gt;var ToMonth = MAX('To-Month/YearMaster'[ToMonthYearKey])&lt;BR /&gt;var stat_date = MAX('gold Report_Revenue_By_Engagement'[statMonthYearKey])&lt;BR /&gt;var Stat = MAX('gold Report_Revenue_By_Engagement'[STATUS])&lt;BR /&gt;RETURN&lt;BR /&gt;IF(&lt;BR /&gt;Stat = "A",&lt;BR /&gt;1,&lt;BR /&gt;IF(&lt;BR /&gt;stat_date &amp;gt;= FromMonth &amp;amp;&amp;amp; stat_date &amp;lt;= ToMonth,&lt;BR /&gt;1,&lt;BR /&gt;0&lt;BR /&gt;)&lt;BR /&gt;)
&lt;DIV class=""&gt;&amp;nbsp;
&lt;DIV class=""&gt;
&lt;P&gt;Reduce the number of columns in the visual: Since you have 170 columns, try to reduce the number of columns displayed in the visual. Only include the necessary columns to minimize memory usage.&lt;/P&gt;
&lt;P&gt;Use variables to store intermediate results: This can help in reusing the calculated values and avoid recalculating them multiple times.&lt;/P&gt;
&lt;P&gt;Filter data early: Apply filters as early as possible in your calculations to reduce the amount of data being processed.&lt;/P&gt;
&lt;P&gt;Simplify calculations: Simplify your DAX measures where possible. For example, avoid using complex nested calculations if they can be broken down into simpler steps.&lt;/P&gt;
&lt;P&gt;Optimize the use of CALCULATE and FILTER: Ensure that you are using these functions efficiently. For example, avoid using FILTER inside CALCULATE if you can achieve the same result with simpler conditions.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 08:42:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-optimization-problem/m-p/4740385#M181550</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-06-23T08:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: DAX optimization problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-optimization-problem/m-p/4740409#M181555</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;&lt;BR /&gt;Thanks for replying. But, I think you have just formatted the same measures. Only change I see is in the second measure where you have added a new variable. Could you please tell if I am missing something?&lt;BR /&gt;&lt;BR /&gt;Also, could you please edit your message to replace the table name with 'Table' for security reasons. My bad.. I mentioned it earlier in the main question&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 08:52:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-optimization-problem/m-p/4740409#M181555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-06-23T08:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: DAX optimization problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-optimization-problem/m-p/4742658#M181616</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Thank you for reaching out to the Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have reproduced your scenario in Power BI using your logic for KPI calculations, From/To month filters, and the conditional status filtering. After implementing your measures and applying the visual-level filter based on Date_Filter, I was able to get the expected output as per your requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your reference, I’m attaching the &lt;STRONG&gt;.pbix&lt;/STRONG&gt; file I used for this validation so you can review and adjust it to fit your full dataset.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;If this information is helpful, please “Accept as solution” &amp;nbsp;to assist other community members in resolving similar issues more efficiently.&lt;BR /&gt;Thank you.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 16:09:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-optimization-problem/m-p/4742658#M181616</guid>
      <dc:creator>v-priyankata</dc:creator>
      <dc:date>2025-06-24T16:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX optimization problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-optimization-problem/m-p/4749517#M181862</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope the information shared was helpful to you. If your question has been answered, kindly mark the most relevant reply as the &lt;STRONG&gt;Accepted Solution&lt;/STRONG&gt;. This small action can make a big difference for others who are looking for the same solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 09:21:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-optimization-problem/m-p/4749517#M181862</guid>
      <dc:creator>v-priyankata</dc:creator>
      <dc:date>2025-07-01T09:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: DAX optimization problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-optimization-problem/m-p/4753445#M181985</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&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&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2025 13:51:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-optimization-problem/m-p/4753445#M181985</guid>
      <dc:creator>v-priyankata</dc:creator>
      <dc:date>2025-07-04T13:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: DAX optimization problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-optimization-problem/m-p/4753704#M181990</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-pm-slice="0 0 []"&gt;You're working with a Power BI report that includes a single table visual displaying over 170 columns, many of which are complex DAX measures that use filters, date ranges, and conditional logic. These measures are calculated dynamically based on slicer selections (like "From Month" and "To Month") and involve row-level computations, including filters using TOPN, CALCULATE, and VAR logic. Because all these measures are evaluated simultaneously for each row in the visual, and the table has a wide structure, the report is consuming excessive memory and computational resources, resulting in the "Resources exceeded" error—especially since you're not using Premium capacity. Additionally, you have a filter condition (Date_Filter) that adds further complexity by evaluating each row's status and date range to conditionally include or exclude data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To improve performance, it's recommended to break the large visual into smaller sections using bookmarks or multiple pages, thereby reducing the memory footprint per visual. Also, pre-aggregating data at the query level (using Power Query or SQL) or creating intermediate summary tables in DAX can help avoid expensive row-level filtering and repeated logic across measures. You can also optimize the measures by avoiding redundant use of FILTER and TOPN, and instead use simpler filter expressions within CALCULATE. If possible, move logic like Date_Filter into a calculated column during data load, which will help offload the logic from the visual evaluation at runtime. Finally, use the Performance Analyzer in Power BI Desktop to identify which specific measures are causing the most delay, and optimize those first. These steps should collectively help you avoid memory overload and improve responsiveness, even without Premium capacity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jul 2025 05:22:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-optimization-problem/m-p/4753704#M181990</guid>
      <dc:creator>Poojara_D12</dc:creator>
      <dc:date>2025-07-05T05:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX optimization problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-optimization-problem/m-p/4755335#M182067</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope everything’s going smoothly on your end. We haven’t heard back from you, so I wanted to check if the issue got sorted&amp;nbsp; If yes, marking the relevant&amp;nbsp;solution would be awesome for others who might run into the same thing.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 12:32:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-optimization-problem/m-p/4755335#M182067</guid>
      <dc:creator>v-priyankata</dc:creator>
      <dc:date>2025-07-07T12:32:43Z</dc:date>
    </item>
  </channel>
</rss>

