<?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 Dimension column based on page date slicer value - possible? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-column-based-on-page-date-slicer-value-possible/m-p/4693404#M179733</link>
    <description>&lt;P&gt;I need to find out whether this is possible - we have a dimension table that has a column [First of Month] - which has data running from 01/01/2022,&amp;nbsp; 01/02/2022,.....&amp;nbsp; up&amp;nbsp; to 01/05/2025.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we build a normal graph, we can choosr the first of a month and this will fill in the data as needed. This is existing functionality and works well. All good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But - I need to builld two powerbi graphs - one that uses the chosen [First of month] value via slicer on the page&amp;nbsp; e.g.&amp;nbsp; 01/10/2024 and a second graph that uses the preceding [First of month] e.g. 01/09/2024. The two graphs need to sit side by side on the page and as I alter the first of of month data slicer, both graphs need to automatically change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is ( i think ) is in effect create a synthetic column on the fly for 01/09/2024. The issue is that we dont have column in the existing calendar table for the [Preceding first of month] ( which would be ideal ) so my question is DAX experts , can we do it, and if so, how could we do it please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have trialled setting up my second graph ( for the preceeding month -&amp;nbsp; 01/09/2024 ) that is de-coupled from the page date slicer value , but we currently have to manually choose the first of month date, which we would love to avoid.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 May 2025 06:13:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-05-15T06:13:09Z</dc:date>
    <item>
      <title>Dimension column based on page date slicer value - possible?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-column-based-on-page-date-slicer-value-possible/m-p/4693404#M179733</link>
      <description>&lt;P&gt;I need to find out whether this is possible - we have a dimension table that has a column [First of Month] - which has data running from 01/01/2022,&amp;nbsp; 01/02/2022,.....&amp;nbsp; up&amp;nbsp; to 01/05/2025.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we build a normal graph, we can choosr the first of a month and this will fill in the data as needed. This is existing functionality and works well. All good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But - I need to builld two powerbi graphs - one that uses the chosen [First of month] value via slicer on the page&amp;nbsp; e.g.&amp;nbsp; 01/10/2024 and a second graph that uses the preceding [First of month] e.g. 01/09/2024. The two graphs need to sit side by side on the page and as I alter the first of of month data slicer, both graphs need to automatically change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is ( i think ) is in effect create a synthetic column on the fly for 01/09/2024. The issue is that we dont have column in the existing calendar table for the [Preceding first of month] ( which would be ideal ) so my question is DAX experts , can we do it, and if so, how could we do it please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have trialled setting up my second graph ( for the preceeding month -&amp;nbsp; 01/09/2024 ) that is de-coupled from the page date slicer value , but we currently have to manually choose the first of month date, which we would love to avoid.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 06:13:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-column-based-on-page-date-slicer-value-possible/m-p/4693404#M179733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-15T06:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension column based on page date slicer value - possible?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-column-based-on-page-date-slicer-value-possible/m-p/4693646#M179743</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;You can create a measure that calculates the preceding month based on the selected [First of Month] value from the slicer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure for the selected [First of Month]:&lt;/P&gt;
&lt;P&gt;SelectedFirstOfMonth = SELECTEDVALUE('Calendar'[First of Month])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure for the preceding [First of Month]:&lt;/P&gt;
&lt;P&gt;PrecedingFirstOfMonth = EOMONTH([SelectedFirstOfMonth], -1) + 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure to filter the data for the preceding month:&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;PrecedingMonthData = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('YourTable'[YourDataColumn]),&lt;BR /&gt;'Calendar'[First of Month] = [PrecedingFirstOfMonth]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the SelectedFirstOfMonth measure to filter the data for the selected month:&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;SelectedMonthData = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('YourTable'[YourDataColumn]),&lt;BR /&gt;'Calendar'[First of Month] = [SelectedFirstOfMonth]&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the first graph, use the SelectedMonthData measure.&lt;BR /&gt;For the second graph, use the PrecedingMonthData measure.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 08:19:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-column-based-on-page-date-slicer-value-possible/m-p/4693646#M179743</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-05-15T08:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension column based on page date slicer value - possible?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-column-based-on-page-date-slicer-value-possible/m-p/4694093#M179764</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;BR /&gt;&lt;BR /&gt;May i know has your issue been resolved? If the response provided by the community member&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;,&amp;nbsp;addressed your query, could you please confirm? It helps us ensure that the solutions provided are effective and beneficial for everyone.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If yes, kindly accept the useful reply as a solution and give us Kudos. It would be appreciated.&lt;/P&gt;
&lt;P&gt;Thank you for your understanding!&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 11:38:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-column-based-on-page-date-slicer-value-possible/m-p/4694093#M179764</guid>
      <dc:creator>v-kpoloju-msft</dc:creator>
      <dc:date>2025-05-15T11:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension column based on page date slicer value - possible?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-column-based-on-page-date-slicer-value-possible/m-p/4695051#M179812</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first 2 pieces of DAX code I understand OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the code appears to sum up the column [YourDataColumn] in the table 'YourTable' , for the lines in the table where 'Calendar'[FirstofMonth] = &amp;lt;some date&amp;gt;. Is that correct?&lt;/P&gt;&lt;P&gt;Also, SUM is normally for adding up numerical values to give a total, I am curious to know what this does with dates please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please explain which table this is&amp;nbsp; ---&amp;gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;'YourTable'[YourDataColumn]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this the 'Calendar'&amp;nbsp; table, or is it table thats displaying the output data on the powerbi desktop, or is it maybe something else ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PrecedingMonthData =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SUM('YourTable'[YourDataColumn]),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'Calendar'[First of Month] = [PrecedingFirstOfMonth]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a SQL background and DAX seems to be really quite different to TSQL.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance, just trying to understand&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 00:31:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-column-based-on-page-date-slicer-value-possible/m-p/4695051#M179812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-16T00:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension column based on page date slicer value - possible?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-column-based-on-page-date-slicer-value-possible/m-p/4695058#M179813</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate you want things wrapped up quickly, will try my best.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 23:31:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dimension-column-based-on-page-date-slicer-value-possible/m-p/4695058#M179813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-15T23:31:32Z</dc:date>
    </item>
  </channel>
</rss>

