<?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: Power BI Matrix Columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Matrix-Columns/m-p/4402183#M174752</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="915241" data-lia-user-login="SonyaNadesan" class="lia-mention lia-mention-user"&gt;SonyaNadesan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Create a measure to capture the selected date from a slicer.&lt;/P&gt;
&lt;P&gt;SelectedDate = SELECTEDVALUE('DateTable'[Date])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure to calculate the data for the past week based on the selected date.&lt;/P&gt;
&lt;P&gt;PastWeekData = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('YourTable'[YourDataColumn]),&lt;BR /&gt;DATESINPERIOD('DateTable'[Date], [SelectedDate], -7, DAY)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add the date column from your date table to the Columns section of the matrix.&lt;/P&gt;
&lt;P&gt;Add the PastWeekData measure to the Values section of the matrix.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2025 06:23:58 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2025-02-10T06:23:58Z</dc:date>
    <item>
      <title>Power BI Matrix Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Matrix-Columns/m-p/4401552#M174733</link>
      <description>&lt;P&gt;I have a matrix that shows data for the selected month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the requirements has changed - the user would like to select a specific date, for which the data for the past week is displayed in our matrix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I achieve this, given that I cannot drop a measure into the Columns section of the matrix?&lt;/P&gt;</description>
      <pubDate>Sun, 09 Feb 2025 16:49:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Matrix-Columns/m-p/4401552#M174733</guid>
      <dc:creator>SonyaNadesan</dc:creator>
      <dc:date>2025-02-09T16:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Matrix Columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Matrix-Columns/m-p/4402183#M174752</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="915241" data-lia-user-login="SonyaNadesan" class="lia-mention lia-mention-user"&gt;SonyaNadesan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Create a measure to capture the selected date from a slicer.&lt;/P&gt;
&lt;P&gt;SelectedDate = SELECTEDVALUE('DateTable'[Date])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure to calculate the data for the past week based on the selected date.&lt;/P&gt;
&lt;P&gt;PastWeekData = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('YourTable'[YourDataColumn]),&lt;BR /&gt;DATESINPERIOD('DateTable'[Date], [SelectedDate], -7, DAY)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add the date column from your date table to the Columns section of the matrix.&lt;/P&gt;
&lt;P&gt;Add the PastWeekData measure to the Values section of the matrix.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2025 06:23:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Matrix-Columns/m-p/4402183#M174752</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-02-10T06:23:58Z</dc:date>
    </item>
  </channel>
</rss>

