<?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: Averagex issue in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5038890#M187157</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1338394" data-lia-user-login="GeraldGEmerick" class="lia-mention lia-mention-user"&gt;GeraldGEmerick&lt;/a&gt;&amp;nbsp; Thanks for your advice, i tried without them and easy Funktions with Average and Filter, but also didn't work.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Feb 2026 07:55:01 GMT</pubDate>
    <dc:creator>Talal141218</dc:creator>
    <dc:date>2026-02-16T07:55:01Z</dc:date>
    <item>
      <title>Averagex issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5015224#M187142</link>
      <description>&lt;DIV&gt;Hello Profis,&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am working with a measure called &lt;STRONG&gt;[Durchlauf. in Tagen]&lt;/STRONG&gt;, which calculates the number of days between different date fields. I attempted to compute an average that includes only values &lt;STRONG&gt;greater than or equal to zero (&amp;gt;= 0)&lt;/STRONG&gt;.&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;Furthermore i want to calculate the Average for this Measure ( Durchlauf in Tage) . Unfortunatley i am getting&amp;nbsp; resulsts don't conrespond with Excel results when i use Averageif. More Screenshots for Avearge in Power BI and in Excel as below:&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;img /&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Feb 2026 13:10:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5015224#M187142</guid>
      <dc:creator>Talal141218</dc:creator>
      <dc:date>2026-02-13T13:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Averagex issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5015745#M187145</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="420267" data-lia-user-login="Talal141218" class="lia-mention lia-mention-user"&gt;Talal141218&lt;/a&gt;&amp;nbsp;One issue I see is that you are using SUMMARIZE in your AVERAGEX function and also adding a column using CALCULATE within the SUMMARIZE. There is an article out there somewhere from SQLBI that says not to do that and instead use ADDCOLUMNS. Not sure if that is your issue but with what you are doing you can get wonky results.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 15:23:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5015745#M187145</guid>
      <dc:creator>GeraldGEmerick</dc:creator>
      <dc:date>2026-02-13T15:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Averagex issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5016302#M187146</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="420267" data-lia-user-login="Talal141218" class="lia-mention lia-mention-user"&gt;Talal141218&lt;/a&gt;&amp;nbsp;Please try with this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Durchlauf in Tagen =
VAR T =
    FILTER (
        ADDCOLUMNS (
            Fact_SalesLine,
            "@val", [Durchlauf. in Tagen]
        ),
        [@val] &amp;gt;= 0
    )
RETURN
    AVERAGEX (
        T[SalesPiklistDate_NK],
        [@val]
    )&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;I hope this helps. If so please mark it as a solution. Kudos are welcome!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 17:53:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5016302#M187146</guid>
      <dc:creator>pcoley</dc:creator>
      <dc:date>2026-02-13T17:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Averagex issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5038860#M187156</link>
      <description>&lt;P&gt;Thanks for your answer, but unfortuntely did't work. I want Average for a Measure "Durch laufzeit in Tagen"&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 07:49:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5038860#M187156</guid>
      <dc:creator>Talal141218</dc:creator>
      <dc:date>2026-02-16T07:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Averagex issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5038890#M187157</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1338394" data-lia-user-login="GeraldGEmerick" class="lia-mention lia-mention-user"&gt;GeraldGEmerick&lt;/a&gt;&amp;nbsp; Thanks for your advice, i tried without them and easy Funktions with Average and Filter, but also didn't work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 07:55:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5038890#M187157</guid>
      <dc:creator>Talal141218</dc:creator>
      <dc:date>2026-02-16T07:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Averagex issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5041960#M187177</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="420267" data-lia-user-login="Talal141218" class="lia-mention lia-mention-user"&gt;Talal141218&lt;/a&gt;,&lt;BR /&gt;Thank you for posting your query in the Microsoft Fabric Community Forum.&lt;BR /&gt;I’ve reproduced your scenario in Power BI Desktop using my sample data aligned with your table structure.&lt;BR /&gt;&lt;BR /&gt;To match Excel AVERAGEIF(&amp;gt;=0), I used the following approach:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Base measure: [Durchlauf. in Tagen] (row-level day difference)&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI-CODE lang="markup"&gt;Durchlauf. in Tagen =

VAR PickDate =

    SELECTEDVALUE ( Fact_SalesLine[SalesPicklistDate] )

VAR ShipDate =

    SELECTEDVALUE ( Fact_SalesLine[SalesLineShippingDateRequested] )

RETURN

IF (

    NOT ISBLANK ( PickDate )

        &amp;amp;&amp;amp; NOT ISBLANK ( ShipDate ),

    DATEDIFF ( PickDate, ShipDate, DAY )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Final measure: Average_Durchlauf_GE_0, which materializes the row-level values and calculates the average only for values ≥ 0 using AVERAGEX&lt;/LI&gt;
&lt;/UL&gt;
&lt;LI-CODE lang="markup"&gt;Average_Durchlauf_GE_0 =

VAR BaseTable =

    ADDCOLUMNS (

        VALUES ( Fact_SalesLine[SalesLineID] ),

        "__Durchlauf", [Durchlauf. in Tagen]

    )

RETURN

AVERAGEX (

    FILTER ( BaseTable, [__Durchlauf] &amp;gt;= 0 ),

    [__Durchlauf]
)&lt;/LI-CODE&gt;
&lt;P&gt;For your reference, I’m attaching the &lt;STRONG&gt;.pbix file&lt;/STRONG&gt; so you can review the complete implementation.&lt;BR /&gt;Thanks,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="842490" data-lia-user-login="pcoley" class="lia-mention lia-mention-user"&gt;pcoley&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1338394" data-lia-user-login="GeraldGEmerick" class="lia-mention lia-mention-user"&gt;GeraldGEmerick&lt;/a&gt;&amp;nbsp;for sharing valuable insights.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;BR /&gt;Ganesh Singamshetty.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 08:52:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5041960#M187177</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2026-02-17T08:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Averagex issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5042486#M187178</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your Support. As you see in the Screenshot. I did't get in your formula the Total of Average. Could you please help me in this topic. Best wishes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 10:33:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5042486#M187178</guid>
      <dc:creator>Talal141218</dc:creator>
      <dc:date>2026-02-17T10:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Averagex issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5042600#M187179</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="420267" data-lia-user-login="Talal141218" class="lia-mention lia-mention-user"&gt;Talal141218&lt;/a&gt;,&lt;BR /&gt;In my PBIX, the Total value is returned correctly using the same measure.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;It’s possible that the difference you’re seeing is related to the data structure or the fields used in the visual. Could you please share a small sample of your data so I can reproduce it on my end and verify the behavior.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Power-BI-Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;How to provide sample data in the Power BI Forum - Microsoft Fabric Community&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you, and I’ll be happy to check this further.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 10:53:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5042600#M187179</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2026-02-17T10:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Averagex issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5122753#M187272</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Query :&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;Average_Durchlauf_GE_0 =&lt;/P&gt;&lt;P&gt;VAR BaseTable =&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;ADDCOLUMNS (&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;VALUES ( Fact_SalesLine[SalesLineID] ),&lt;/P&gt;&lt;P&gt;"__Durchlauf", [Durchlauf. in Tagen]&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;AVERAGEX (&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FILTER ( BaseTable, [__Durchlauf] &amp;gt;= 0 ),&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;[__Durchlauf]&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;)&lt;BR /&gt;&lt;STRONG&gt;Result :&amp;nbsp;&lt;/STRONG&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2026 18:33:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Averagex-issue/m-p/5122753#M187272</guid>
      <dc:creator>Ray_Minds</dc:creator>
      <dc:date>2026-02-27T18:33:53Z</dc:date>
    </item>
  </channel>
</rss>

