<?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 Measure Query in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Query/m-p/4756490#M182115</link>
    <description>&lt;P&gt;The reason is that you do not have an active row context on the Calendar_Lookup Table, since a measure does not create a row context on a table, unless you explicit ask so. So you can find the code to use in a measure in the preceding pst by another supporter in the forum, but here is the reason that you were asking for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="273" data-lia-user-login="me" class="lia-mention lia-mention-user"&gt;me&lt;/a&gt; in replies or I'll lose your thread&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jul 2025 12:12:53 GMT</pubDate>
    <dc:creator>FBergamaschi</dc:creator>
    <dc:date>2025-07-08T12:12:53Z</dc:date>
    <item>
      <title>DAX Measure Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Query/m-p/4756440#M182113</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know why I get an error when I use this in a measure:&lt;/P&gt;&lt;P&gt;VAR __fyStart = &lt;STRONG&gt;DATE(YEAR(Calendar_Lookup[Date]), 4, 1)&lt;/STRONG&gt;&lt;BR /&gt;VAR __fyEnd = &lt;STRONG&gt;DATE(YEAR(Calendar_Lookup[Date]) + 1, 3, 31)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error message&lt;/STRONG&gt; :&amp;nbsp;A single value for column 'Date' in table 'Calendar_Lookup' cannot be determined. This can happen when a measure or function formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to &lt;SPAN&gt;create a measure to calculate the total cost per financial year considering the days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 11:42:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Query/m-p/4756440#M182113</guid>
      <dc:creator>SuzieKidd</dc:creator>
      <dc:date>2025-07-08T11:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Query/m-p/4756478#M182114</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VAR MaxDate = MAX(Calendar_Lookup[Date])
VAR __fyStart = DATE(YEAR(MaxDate), 4, 1)
VAR __fyEnd = DATE(YEAR(MaxDate) + 1, 3, 31)&lt;/LI-CODE&gt;
&lt;P&gt;That will use the latest date from the filter context.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 12:09:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Query/m-p/4756478#M182114</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-07-08T12:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Query/m-p/4756490#M182115</link>
      <description>&lt;P&gt;The reason is that you do not have an active row context on the Calendar_Lookup Table, since a measure does not create a row context on a table, unless you explicit ask so. So you can find the code to use in a measure in the preceding pst by another supporter in the forum, but here is the reason that you were asking for&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="273" data-lia-user-login="me" class="lia-mention lia-mention-user"&gt;me&lt;/a&gt; in replies or I'll lose your thread&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 12:12:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Query/m-p/4756490#M182115</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2025-07-08T12:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Query/m-p/4757704#M182178</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="510878" data-lia-user-login="SuzieKidd" class="lia-mention lia-mention-user"&gt;SuzieKidd&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;As correctly pointed by the users, &lt;SPAN&gt;you do not have an active row context on the Calendar_Lookup Table, therefore you get the error.Since&amp;nbsp;you're referencing&amp;nbsp;Calendar_Lookup[Date] directly in a measure without an aggregation, it throws you this error. Measures operate in a filter context, and if that context includes multiple rows, DAX doesn't know which single value to use unless you specify it.&lt;BR /&gt;&lt;BR /&gt;Maybe you want to aggregate first and then use it-&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VAR __fyStart = DATE(YEAR(MAX(Calendar_Lookup[Date])), 4, 1)
VAR __fyEnd = DATE(YEAR(MAX(Calendar_Lookup[Date])) + 1, 3, 31)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 07:13:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Query/m-p/4757704#M182178</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-07-23T07:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Query/m-p/4765279#M182548</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="510878" data-lia-user-login="SuzieKidd" class="lia-mention lia-mention-user"&gt;SuzieKidd&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Just wanted to check if you had the opportunity to review the suggestions provided?&lt;BR /&gt;If any of the response has addressed your query, please&amp;nbsp;accept it as a solution&amp;nbsp;so that other members can easily find it.&lt;BR /&gt;Thank You&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 12:33:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Query/m-p/4765279#M182548</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-07-16T12:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Query/m-p/4770801#M182713</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/510878" target="_blank" rel="noopener"&gt;@SuzieKidd&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wanted to check if you had the opportunity to review the suggestions provided?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank You&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 07:09:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Query/m-p/4770801#M182713</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-07-23T07:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Query/m-p/4773182#M182798</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/510878" target="_blank" rel="noopener"&gt;@SuzieKidd&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wanted to check if you had the opportunity to review the suggestions provided?&lt;BR /&gt;&lt;/SPAN&gt;If you still face any issues feel free to reach out.&lt;BR /&gt;&lt;SPAN&gt;Thank You&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2025 07:12:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Query/m-p/4773182#M182798</guid>
      <dc:creator>v-sdhruv</dc:creator>
      <dc:date>2025-07-23T07:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Query/m-p/4778097#M183001</link>
      <description>&lt;P&gt;Thank you for all the responses, I have now resolved this issue.&lt;/P&gt;&lt;P&gt;Suzie&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 07:26:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-Query/m-p/4778097#M183001</guid>
      <dc:creator>SuzieKidd</dc:creator>
      <dc:date>2025-07-28T07:26:08Z</dc:date>
    </item>
  </channel>
</rss>

