<?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: &amp;quot;Time intelligence&amp;quot; for non-time dimension in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-Time-intelligence-quot-for-non-time-dimension/m-p/4239656#M167776</link>
    <description>&lt;P&gt;Sure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MIN =&lt;/SPAN&gt; &lt;SPAN&gt;AVERAGE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'NBA box score - Player'&lt;/SPAN&gt;&lt;SPAN&gt;[TMIN]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Selected season =&lt;/SPAN&gt; &lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'NBA season'&lt;/SPAN&gt;&lt;SPAN&gt;[SeasonID]&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;'NBA box score - Player' is the table with player stats by game.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;'NBA season' is the dimension table of the seasons (just a plain list of "Season" / "SeasonID").&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Oct 2024 16:08:37 GMT</pubDate>
    <dc:creator>fpennisi</dc:creator>
    <dc:date>2024-10-12T16:08:37Z</dc:date>
    <item>
      <title>"Time intelligence" for non-time dimension</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-Time-intelligence-quot-for-non-time-dimension/m-p/4239583#M167766</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working with a NBA Dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table showing the season, where a Season as an ID which is the starting year of the season (e.g. for season 2023/24 the ID is 2023).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to show, for a given season, player averages related to the previous one.&lt;/P&gt;&lt;P&gt;I created the measure highlited below, that takes the average minutes overall (it's another measure) and calculates for the previous season of the selected one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the measure is not shown and I think that the reason is that the filter context of each row has the season set to the selected one, while the measure takes the values of another season.&lt;/P&gt;&lt;P&gt;How can I correct the measure to get the desired result?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 11:35:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-Time-intelligence-quot-for-non-time-dimension/m-p/4239583#M167766</guid>
      <dc:creator>fpennisi</dc:creator>
      <dc:date>2024-10-12T11:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: "Time intelligence" for non-time dimension</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-Time-intelligence-quot-for-non-time-dimension/m-p/4239627#M167770</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="418584" data-lia-user-login="fpennisi" class="lia-mention lia-mention-user"&gt;fpennisi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To evaluate your formula, could you please share the measures [Selected season] and [MIN] with us?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 14:26:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-Time-intelligence-quot-for-non-time-dimension/m-p/4239627#M167770</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-10-12T14:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: "Time intelligence" for non-time dimension</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-Time-intelligence-quot-for-non-time-dimension/m-p/4239656#M167776</link>
      <description>&lt;P&gt;Sure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MIN =&lt;/SPAN&gt; &lt;SPAN&gt;AVERAGE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'NBA box score - Player'&lt;/SPAN&gt;&lt;SPAN&gt;[TMIN]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Selected season =&lt;/SPAN&gt; &lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'NBA season'&lt;/SPAN&gt;&lt;SPAN&gt;[SeasonID]&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;'NBA box score - Player' is the table with player stats by game.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;'NBA season' is the dimension table of the seasons (just a plain list of "Season" / "SeasonID").&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 16:08:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-Time-intelligence-quot-for-non-time-dimension/m-p/4239656#M167776</guid>
      <dc:creator>fpennisi</dc:creator>
      <dc:date>2024-10-12T16:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: "Time intelligence" for non-time dimension</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-Time-intelligence-quot-for-non-time-dimension/m-p/4239854#M167800</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="418584" data-lia-user-login="fpennisi" class="lia-mention lia-mention-user"&gt;fpennisi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the clarification. I encountered a similar issue where the previous month's values didn’t appear when the current month filter was applied in the row fields. I believe the formula below will resolve this issue.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;EoPS MIN Previous Season = 
VAR CurrentSeason = SELECTEDVALUE('NBA season'[Season ID])
VAR PreviousSeason = CurrentSeason - 1
RETURN
    CALCULATE(
        [MIN],
        FILTER(
            ALL('NBA season'),
            'NBA season'[Season ID] = PreviousSeason
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason the previous formula returned blank rows is that when you use a matrix visual with the current season in the row field, Power BI automatically applies a filter to show only the current season. This means that for each row in the visual, only data for the selected season is considered. The filter context created by the visual restricts the data to the specific season in that row.&lt;/P&gt;
&lt;P&gt;Your original formula was constrained by this filter context, which applied only to the current season.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 04:06:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-Time-intelligence-quot-for-non-time-dimension/m-p/4239854#M167800</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-10-13T04:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: "Time intelligence" for non-time dimension</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-Time-intelligence-quot-for-non-time-dimension/m-p/4239952#M167813</link>
      <description>&lt;P&gt;It worked perfectly!&lt;/P&gt;&lt;P&gt;I guessed it was for the reason you explained and a tried a couple of measures with ALL or REMOVEFILTERS, but I wasn't able to let them work.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 13 Oct 2024 09:00:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/quot-Time-intelligence-quot-for-non-time-dimension/m-p/4239952#M167813</guid>
      <dc:creator>fpennisi</dc:creator>
      <dc:date>2024-10-13T09:00:44Z</dc:date>
    </item>
  </channel>
</rss>

