<?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 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX/m-p/4596042#M175995</link>
    <description>&lt;P&gt;But what was the error with what i wrote??&lt;/P&gt;&lt;P&gt;It was supposed to give the result as expected right&lt;/P&gt;</description>
    <pubDate>Wed, 05 Mar 2025 06:41:16 GMT</pubDate>
    <dc:creator>Cyriackpazhe</dc:creator>
    <dc:date>2025-03-05T06:41:16Z</dc:date>
    <item>
      <title>DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX/m-p/4595965#M175993</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;In the first measure, I'm trying to compute the average quarterly sales and next measure the average montly sales in each year. In the first mesure, i should be getting the year level value in the quarter level as well since there is an ALL function around the quarter column, but why am i getting this result. Same issue with the second measure. Any reason why this is happening&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 05:39:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX/m-p/4595965#M175993</guid>
      <dc:creator>Cyriackpazhe</dc:creator>
      <dc:date>2025-03-05T05:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX/m-p/4596032#M175994</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="916274" data-lia-user-login="Cyriackpazhe" class="lia-mention lia-mention-user"&gt;Cyriackpazhe&lt;/a&gt;&amp;nbsp;try this version for your measure&lt;/P&gt;
&lt;P&gt;Quarterly Average Test = &lt;BR /&gt;AVERAGEX(&lt;BR /&gt;VALUES('Calendar'[Date]),&lt;BR /&gt;CALCULATE([Total], ALL('Calendar'[Date]))&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 06:27:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX/m-p/4596032#M175994</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2025-03-05T06:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX/m-p/4596042#M175995</link>
      <description>&lt;P&gt;But what was the error with what i wrote??&lt;/P&gt;&lt;P&gt;It was supposed to give the result as expected right&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 06:41:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX/m-p/4596042#M175995</guid>
      <dc:creator>Cyriackpazhe</dc:creator>
      <dc:date>2025-03-05T06:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX/m-p/4596068#M175997</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="916274" data-lia-user-login="Cyriackpazhe" class="lia-mention lia-mention-user"&gt;Cyriackpazhe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure might aggregate values across all quarters rather than respecting the context of year and quarter&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 07:02:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX/m-p/4596068#M175997</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2025-03-05T07:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX/m-p/4644173#M177813</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="916274" data-lia-user-login="Cyriackpazhe" class="lia-mention lia-mention-user"&gt;Cyriackpazhe&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for reaching out to the Microsoft fabric community forum. Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;,&amp;nbsp;for your inputs on this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for bringing this to my attention. Upon reviewing your DAX measures, I noticed the inconsistency in average quarterly and monthly sales across different periods, even with the ALL() function applied.&lt;/P&gt;
&lt;P&gt;This occurs because ALL('Calendar'[Quarter]) or ALL('Calendar'[Month]) only removes the filter for that specific column. However, in a matrix visual with a hierarchy (such as Year &amp;gt; Quarter or Year &amp;gt; Month), the row-level filters from the visual still affect the context, resulting in varying outcomes for each row.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;To ensure the calculation is performed at the year level and the same value is displayed across quarters or months in the matrix, you can use the following DAX measures with ALLEXCEPT, which retains only the Year filter:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Quarterly Average:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DAX

CopyEdit

Quarterly Average =

CALCULATE (

    AVERAGEX (

        VALUES ( 'Calendar'[Quarter] ),

        [Total Sales]

    ),

    ALLEXCEPT ( 'Calendar', 'Calendar'[Year] )

)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Monthly Average:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DAX

CopyEdit

Monthly Average =

CALCULATE (

    AVERAGEX (

        VALUES ( 'Calendar'[Month] ),

        [Total Sales]

    ),

    ALLEXCEPT ( 'Calendar', 'Calendar'[Year] )

)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ALLEXCEPT clears all filters from the Calendar table except for Year, so the average is always calculated at the year level just as intended. This approach avoids row context interference from the visual (like month or quarter rows).&lt;BR /&gt;&lt;BR /&gt;If this post&amp;nbsp;helps, then please give us ‘Kudos’ and consider&amp;nbsp;Accept it as a solution&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;&lt;BR /&gt;Thank you for using Microsoft Community Forum.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 04:30:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX/m-p/4644173#M177813</guid>
      <dc:creator>v-kpoloju-msft</dc:creator>
      <dc:date>2025-04-09T04:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX/m-p/4650273#M178001</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="916274" data-lia-user-login="Cyriackpazhe" class="lia-mention lia-mention-user"&gt;Cyriackpazhe&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Apr 2025 16:44:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX/m-p/4650273#M178001</guid>
      <dc:creator>v-kpoloju-msft</dc:creator>
      <dc:date>2025-04-13T16:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX/m-p/4655898#M178242</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="916274" data-lia-user-login="Cyriackpazhe" class="lia-mention lia-mention-user"&gt;Cyriackpazhe&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&lt;BR /&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 and give a 'Kudos' so other members can easily find it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 13:59:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX/m-p/4655898#M178242</guid>
      <dc:creator>v-kpoloju-msft</dc:creator>
      <dc:date>2025-04-16T13:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX/m-p/4659715#M178425</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="916274" data-lia-user-login="Cyriackpazhe" class="lia-mention lia-mention-user"&gt;Cyriackpazhe&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Apr 2025 05:05:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX/m-p/4659715#M178425</guid>
      <dc:creator>v-kpoloju-msft</dc:creator>
      <dc:date>2025-04-20T05:05:16Z</dc:date>
    </item>
  </channel>
</rss>

