<?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: DAX for Filtering a row of currency by a Date Created by a Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Filtering-a-row-of-currency-by-a-Date-Created-by-a/m-p/2673601#M79810</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="410549" data-lia-user-login="NL-Nicolas" class="lia-mention lia-mention-user"&gt;NL-Nicolas&lt;/a&gt; , With help from a week rank column in date/week table &lt;/P&gt;
&lt;P&gt;Week Rank = RANKX(all('Date'),'Date'[Week Start date],,ASC,Dense) &lt;BR /&gt;OR&lt;BR /&gt;Week Rank = RANKX(all('Date'),'Date'[Year Week],,ASC,Dense) //YYYYWW format &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can&amp;nbsp; measures like&lt;BR /&gt;This Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))&lt;BR /&gt;Last Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI — Week on Week and WTD &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=pnAesWxYgJ8" target="_blank"&gt;https://www.youtube.com/watch?v=pnAesWxYgJ8&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2022 17:08:57 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-08-01T17:08:57Z</dc:date>
    <item>
      <title>DAX for Filtering a row of currency by a Date Created by a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Filtering-a-row-of-currency-by-a-Date-Created-by-a/m-p/2673111#M79780</link>
      <description>&lt;P&gt;Hi Power Bi Community!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a screenshot of what I am trying to achieve, I have 2 tables using the same NetSales column. In the car above I want to show the difference for each row between both tables NetSales Column. I have tried so many different things and using 2 different tables to show the % change by date was all I had left for ammo! Recommendations on how to do This Week vs This Week Last Year welcome&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, 01 Aug 2022 13:47:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Filtering-a-row-of-currency-by-a-Date-Created-by-a/m-p/2673111#M79780</guid>
      <dc:creator>NL-Nicolas</dc:creator>
      <dc:date>2022-08-01T13:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for Filtering a row of currency by a Date Created by a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Filtering-a-row-of-currency-by-a-Date-Created-by-a/m-p/2673601#M79810</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="410549" data-lia-user-login="NL-Nicolas" class="lia-mention lia-mention-user"&gt;NL-Nicolas&lt;/a&gt; , With help from a week rank column in date/week table &lt;/P&gt;
&lt;P&gt;Week Rank = RANKX(all('Date'),'Date'[Week Start date],,ASC,Dense) &lt;BR /&gt;OR&lt;BR /&gt;Week Rank = RANKX(all('Date'),'Date'[Year Week],,ASC,Dense) //YYYYWW format &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can&amp;nbsp; measures like&lt;BR /&gt;This Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))&lt;BR /&gt;Last Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI — Week on Week and WTD &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=pnAesWxYgJ8" target="_blank"&gt;https://www.youtube.com/watch?v=pnAesWxYgJ8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 17:08:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Filtering-a-row-of-currency-by-a-Date-Created-by-a/m-p/2673601#M79810</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-08-01T17:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAX for Filtering a row of currency by a Date Created by a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Filtering-a-row-of-currency-by-a-Date-Created-by-a/m-p/2681208#M80305</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="410549" data-lia-user-login="NL-Nicolas" class="lia-mention lia-mention-user"&gt;NL-Nicolas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;1.Please try to add an index column for two table:&lt;/P&gt;
&lt;P&gt;Table1:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table2:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.add a slicer for with, and create a measure and add it into card visual&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Differ =
VAR cur_index =
    SELECTEDVALUE ( Table2[Index] )
VAR cur_table1 =
    CALCULATE ( MAX ( Table1[NetSales] ), Table1[Index] = cur_index )
VAR cur_table2 =
    CALCULATE ( MAX ( Table2[NetSales] ), Table2[Index] = cur_index )
RETURN
    cur_table1 - cur_table2
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please refer attached .pbix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Binbin Yu&lt;BR /&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 09:34:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-for-Filtering-a-row-of-currency-by-a-Date-Created-by-a/m-p/2681208#M80305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-04T09:34:29Z</dc:date>
    </item>
  </channel>
</rss>

