<?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: Anyone know about MinMaxColumnPositionCallback in DAX Studio server timings? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Anyone-know-about-MinMaxColumnPositionCallback-in-DAX-Studio/m-p/2870504#M92603</link>
    <description>&lt;P&gt;Try to ask this question to Marco Russo and/or Alberto Ferrari. If there's anything to know about it... they are the ultimate source of knowledge about anything DAX.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2022 10:49:11 GMT</pubDate>
    <dc:creator>daXtreme</dc:creator>
    <dc:date>2022-10-28T10:49:11Z</dc:date>
    <item>
      <title>Anyone know about MinMaxColumnPositionCallback in DAX Studio server timings?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Anyone-know-about-MinMaxColumnPositionCallback-in-DAX-Studio/m-p/2869952#M92575</link>
      <description>&lt;P&gt;I've run a trace on my DAX query, and many rows in the server timings show MinMaxColumnPositionCallback in bold, indicating it is a performance problem. I googled and get zero results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone got some info on this?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 07:45:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Anyone-know-about-MinMaxColumnPositionCallback-in-DAX-Studio/m-p/2869952#M92575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-28T07:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know about MinMaxColumnPositionCallback in DAX Studio server timings?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Anyone-know-about-MinMaxColumnPositionCallback-in-DAX-Studio/m-p/2870504#M92603</link>
      <description>&lt;P&gt;Try to ask this question to Marco Russo and/or Alberto Ferrari. If there's anything to know about it... they are the ultimate source of knowledge about anything DAX.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 10:49:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Anyone-know-about-MinMaxColumnPositionCallback-in-DAX-Studio/m-p/2870504#M92603</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-10-28T10:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know about MinMaxColumnPositionCallback in DAX Studio server timings?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Anyone-know-about-MinMaxColumnPositionCallback-in-DAX-Studio/m-p/2870522#M92605</link>
      <description>&lt;P&gt;How do I go about asking these gents?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 10:59:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Anyone-know-about-MinMaxColumnPositionCallback-in-DAX-Studio/m-p/2870522#M92605</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-28T10:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know about MinMaxColumnPositionCallback in DAX Studio server timings?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Anyone-know-about-MinMaxColumnPositionCallback-in-DAX-Studio/m-p/2870544#M92606</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; you can ping users on forums using&amp;nbsp;@ and their name e.g.&amp;nbsp;'@marcorusso&amp;nbsp;or&amp;nbsp;'@AlbertoFerrari.&lt;BR /&gt;&lt;BR /&gt;For my take to your dilemma I recommend checking this blog by entreprisedna:&amp;nbsp;&lt;A href="https://blog.enterprisedna.co/performance-issue-in-dax-studio-callbackdataid/" target="_blank"&gt;Performance Issue In DAX Studio: CallBackDataID - Enterprise DNA&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;It discusses the likely reason these rows are bolded and a solution proposal to the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 11:04:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Anyone-know-about-MinMaxColumnPositionCallback-in-DAX-Studio/m-p/2870544#M92606</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-10-28T11:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know about MinMaxColumnPositionCallback in DAX Studio server timings?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Anyone-know-about-MinMaxColumnPositionCallback-in-DAX-Studio/m-p/4350182#M172759</link>
      <description>&lt;P&gt;I know this is over 2 years late, but the SQLBI folks do have some docs on this now, available here:&lt;BR /&gt;&lt;A href="https://docs.sqlbi.com/dax-internals/vertipaq/xmSQL#callbacks" target="_blank"&gt;xmSQL code in VertiPaq - SQLBI Docs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Quote:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MinMaxColumnPositionCallback: Transforms a column value into its position in the list of all values of the column properly sorted. The transformation uses the attribute hierarchy. If the attribute hierarchy is disabled (Available in MDX=False), then this callback cannot be used, and the column must be materialized to the formula engine to find min/max values.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Hope this helps whoever searches for this obscure callback type in the future!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 19:06:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Anyone-know-about-MinMaxColumnPositionCallback-in-DAX-Studio/m-p/4350182#M172759</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-03T19:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know about MinMaxColumnPositionCallback in DAX Studio server timings?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Anyone-know-about-MinMaxColumnPositionCallback-in-DAX-Studio/m-p/4350294#M172764</link>
      <description>&lt;P&gt;I also (sort of) found another fix/cause for this callback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm unfortunately dealing with a DirectQuery model, due to pre-existing architectural choices that are now being re-evaluated. The partiuclar source is Dremio Cloud, which is actually pretty fast and only has a few quirks around DQ, versus the many sources where DQ is terrible for performance. Still not as fast as Import or DirectLake, but changing a whole model mode is not something that can be changed in a few minutes after data load and partitioning strategies are considered. All that said, I have no idea if the below finding would apply in Import mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this particular example, a column, let's call it&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;'Reporting Scenario'[Scenario]&lt;/LI-CODE&gt;&lt;P&gt;in a Dual-mode table was being evaluated in a SELECTEDVALUE(), and didn't have a sort order column applied. There actually was a sort order column, let's call it&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;'Reporting Scenario'[Scenario Sort Order]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;in the same table that was intended to be used, but wasn't applied. Evaluation of this column showed that&amp;nbsp;MinMaxColumnPositionCallback was being evaluated for the column. Applying the sort order column lead to a much simpler xmSQL statement without a&amp;nbsp;MinMaxColumnPositionCallback on re-runs of an otherwise identical query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not all such columns where SELECTEDVALUE() would be used will have a meaningful sort order, and again I have no idea if this applies just to DirectQuery, DirectQuery over Dremio, or will hold in future versions of the Power BI engine. I've also rarely seen this callback be a meaningful performance issue in Import models, so unless there's some compelling reason or evidence that this callback is leading to other performance issues in the same measure/query, getting rid of this callback is unlikely to significantly improve report performance. But doesn't hurt to try if time and resources allow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 21:27:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Anyone-know-about-MinMaxColumnPositionCallback-in-DAX-Studio/m-p/4350294#M172764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-03T21:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know about MinMaxColumnPositionCallback in DAX Studio server timings?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Anyone-know-about-MinMaxColumnPositionCallback-in-DAX-Studio/m-p/4350477#M172773</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &lt;SPAN&gt;MinMaxColumnPositionCallback&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;in server timings indicates that Power BI is calculating the minimum and maximum positions of a column, often due to filtering or range queries on large datasets. This can cause performance issues, especially with high-cardinality columns.&lt;/P&gt;&lt;H3&gt;How to Fix:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Optimize Columns&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Reduce cardinality (e.g., group dates into hierarchies).&lt;/LI&gt;&lt;LI&gt;Use summarized data instead of raw values.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Refactor DAX&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Simplify filters and calculations.&lt;/LI&gt;&lt;LI&gt;Use variables to avoid redundant operations.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Optimize Relationships&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use single-direction relationships where possible.&lt;/LI&gt;&lt;LI&gt;Avoid bi-directional filtering unless necessary.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Check Visuals&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Simplify slicers or pre-filter data in Power Query.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Use DAX Studio&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Analyze query performance and pinpoint bottlenecks.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Refining filters, columns, and relationships will usually resolve this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution, this will help others!&lt;/STRONG&gt;&lt;BR /&gt;If my response(s) assisted you in any way, don't forget to drop me a "&lt;STRONG&gt;Kudos&lt;/STRONG&gt;" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Poojara&lt;BR /&gt;Data Analyst | MSBI Developer | Power BI Consultant&lt;BR /&gt;&lt;STRONG&gt;Consider Subscribing my YouTube for Beginners/Advance Concepts:&lt;/STRONG&gt;&amp;nbsp;&lt;A href="https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS" target="_self"&gt;https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2025 06:47:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Anyone-know-about-MinMaxColumnPositionCallback-in-DAX-Studio/m-p/4350477#M172773</guid>
      <dc:creator>Poojara_D12</dc:creator>
      <dc:date>2025-01-04T06:47:25Z</dc:date>
    </item>
  </channel>
</rss>

