<?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: Dynamic values based on selected year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-values-based-on-selected-year/m-p/2191552#M51251</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , A column can not use slicer value , You can create measure &lt;/P&gt;
&lt;P&gt;example&lt;/P&gt;
&lt;P&gt;var _max = year(maxx(allselected('Date'),'Date'[Date]) )&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;Switch( true() ,&lt;/P&gt;
&lt;P&gt;year(Max(Table[projects released])) &amp;lt; _max , "Frontlist" ,&lt;/P&gt;
&lt;P&gt;year(Max(Table[projects released])) = _max , "Backlist" ,&lt;/P&gt;
&lt;P&gt;"Other"&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 16 Nov 2021 03:33:44 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-11-16T03:33:44Z</dc:date>
    <item>
      <title>Dynamic values based on selected year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-values-based-on-selected-year/m-p/2190781#M51215</link>
      <description>&lt;P&gt;I've dimensional data which includes "published year". I would like to add a conditional column that changes based on the year(s) the date range of the sales data meaning if I fx. select sales data for 2020, the DIM_releasedate should show "Frontlist" for all projects released in 2020 and "Backlist" for titles published before 2020. It needs to look at the must current year if sales date for multiple years are selected.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 18:40:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-values-based-on-selected-year/m-p/2190781#M51215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-15T18:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic values based on selected year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-values-based-on-selected-year/m-p/2191552#M51251</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , A column can not use slicer value , You can create measure &lt;/P&gt;
&lt;P&gt;example&lt;/P&gt;
&lt;P&gt;var _max = year(maxx(allselected('Date'),'Date'[Date]) )&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;Switch( true() ,&lt;/P&gt;
&lt;P&gt;year(Max(Table[projects released])) &amp;lt; _max , "Frontlist" ,&lt;/P&gt;
&lt;P&gt;year(Max(Table[projects released])) = _max , "Backlist" ,&lt;/P&gt;
&lt;P&gt;"Other"&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 03:33:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-values-based-on-selected-year/m-p/2191552#M51251</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-11-16T03:33:44Z</dc:date>
    </item>
  </channel>
</rss>

