<?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: to get the last rolling 12 months ID depending on the selection on date slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/to-get-the-last-rolling-12-months-ID-depending-on-the-selection/m-p/3378152#M127230</link>
    <description>&lt;P&gt;The data range slicer is selected from 1/12/2022 to 31/1/2023&lt;/P&gt;&lt;P&gt;so i would like to get the monthID counting back from 202301 till 202202&lt;/P&gt;&lt;P&gt;This is the expected result i would like to get but surely not want to hardcode the the value for &lt;SPAN&gt;end_monthID,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;start_monthID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can anybody help?&lt;/SPAN&gt;&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;</description>
    <pubDate>Mon, 14 Aug 2023 02:04:01 GMT</pubDate>
    <dc:creator>jajaAtPowerbi</dc:creator>
    <dc:date>2023-08-14T02:04:01Z</dc:date>
    <item>
      <title>to get the last rolling 12 months ID depending on the selection on date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/to-get-the-last-rolling-12-months-ID-depending-on-the-selection/m-p/3377909#M127212</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;would like to get the previous rolling 12 month ID by summarizing calendar table according to the selection of the date slicer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;here below are the 2 measures :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/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TH&lt;/SPAN&gt;&lt;SPAN&gt;([end date])-&lt;/SPAN&gt;&lt;SPAN&gt;11&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"YYYYMM"&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;why Calendar_R12Months does not summarize what i expected?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 13 Aug 2023 17:35:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/to-get-the-last-rolling-12-months-ID-depending-on-the-selection/m-p/3377909#M127212</guid>
      <dc:creator>jajaAtPowerbi</dc:creator>
      <dc:date>2023-08-13T17:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: to get the last rolling 12 months ID depending on the selection on date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/to-get-the-last-rolling-12-months-ID-depending-on-the-selection/m-p/3378152#M127230</link>
      <description>&lt;P&gt;The data range slicer is selected from 1/12/2022 to 31/1/2023&lt;/P&gt;&lt;P&gt;so i would like to get the monthID counting back from 202301 till 202202&lt;/P&gt;&lt;P&gt;This is the expected result i would like to get but surely not want to hardcode the the value for &lt;SPAN&gt;end_monthID,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;start_monthID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can anybody help?&lt;/SPAN&gt;&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;</description>
      <pubDate>Mon, 14 Aug 2023 02:04:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/to-get-the-last-rolling-12-months-ID-depending-on-the-selection/m-p/3378152#M127230</guid>
      <dc:creator>jajaAtPowerbi</dc:creator>
      <dc:date>2023-08-14T02:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: to get the last rolling 12 months ID depending on the selection on date slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/to-get-the-last-rolling-12-months-ID-depending-on-the-selection/m-p/3384065#M127501</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="602328" data-lia-user-login="jajaAtPowerbi" class="lia-mention lia-mention-user"&gt;jajaAtPowerbi&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Current power bi does not support to create dynamic calculated column/table based on filter selections. They do not work on the same level and you can't use the child level to affect its parent.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Notice: the data level of power bi(from parent to child level)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Database(external) -&amp;gt; query table(query, custom function, query parameters) -&amp;gt; data model table(table, calculate column/table) -&amp;gt; data view with virtual tables(measure, visual, filter, slicer)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 01:24:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/to-get-the-last-rolling-12-months-ID-depending-on-the-selection/m-p/3384065#M127501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-17T01:24:31Z</dc:date>
    </item>
  </channel>
</rss>

