<?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 Comparing Changes from Current Report and Last Report with Text Values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Changes-from-Current-Report-and-Last-Report-with-Text/m-p/683813#M461</link>
    <description>&lt;P&gt;Hello. I have a report which lists items on backorder each week. Each week is determined by a date column, and I use a relative date column to determine Current Report (Value of 0), and Previous Report (Value of -1), as the report days are not consistent. Items on backorder are notated in a "Comment" column, as other comments exist that are filtered out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am looking for is to create two tables: One which lists items that have Comment "Backorder" for the Previous Report (-1) but do not have Comment "Backorder" for the Current Report (0), and second table that lists items that have Comment "Backorder" for the Current Report (0) but not for the Previous Report (-1). The idea is to show which backorder have been added or dropped since the previous report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The easiest solution seems to be to add a new column with an indicator value for each table, which would allow for easy filtering, however I have been unsuccessful. The table below is how I am seeing what I would like. The Indicator column represents what I am trying to accomplish, and the Result column is there for reference purposes only. Any help is greatly appreciated. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Relative Week&lt;/TD&gt;&lt;TD&gt;Comment&lt;/TD&gt;&lt;TD&gt;Item&lt;/TD&gt;&lt;TD&gt;Indicator&lt;/TD&gt;&lt;TD&gt;Result&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/29/2019&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;In Stock&lt;/TD&gt;&lt;TD&gt;A123&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Came In To Stock&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/29/2019&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;Backorder&lt;/TD&gt;&lt;TD&gt;B456&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;New Backorder&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/29/2019&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;Special Order&lt;/TD&gt;&lt;TD&gt;C789&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;N/A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/22/2019&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;Backorder&lt;/TD&gt;&lt;TD&gt;A123&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Came In To Stock&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/22/2019&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;In Stock&lt;/TD&gt;&lt;TD&gt;B456&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;New Backorder&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/22/2019&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;Special Order&lt;/TD&gt;&lt;TD&gt;C789&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;N/A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Sat, 04 May 2019 13:31:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-04T13:31:21Z</dc:date>
    <item>
      <title>Comparing Changes from Current Report and Last Report with Text Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Changes-from-Current-Report-and-Last-Report-with-Text/m-p/683813#M461</link>
      <description>&lt;P&gt;Hello. I have a report which lists items on backorder each week. Each week is determined by a date column, and I use a relative date column to determine Current Report (Value of 0), and Previous Report (Value of -1), as the report days are not consistent. Items on backorder are notated in a "Comment" column, as other comments exist that are filtered out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am looking for is to create two tables: One which lists items that have Comment "Backorder" for the Previous Report (-1) but do not have Comment "Backorder" for the Current Report (0), and second table that lists items that have Comment "Backorder" for the Current Report (0) but not for the Previous Report (-1). The idea is to show which backorder have been added or dropped since the previous report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The easiest solution seems to be to add a new column with an indicator value for each table, which would allow for easy filtering, however I have been unsuccessful. The table below is how I am seeing what I would like. The Indicator column represents what I am trying to accomplish, and the Result column is there for reference purposes only. Any help is greatly appreciated. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Relative Week&lt;/TD&gt;&lt;TD&gt;Comment&lt;/TD&gt;&lt;TD&gt;Item&lt;/TD&gt;&lt;TD&gt;Indicator&lt;/TD&gt;&lt;TD&gt;Result&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/29/2019&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;In Stock&lt;/TD&gt;&lt;TD&gt;A123&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Came In To Stock&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/29/2019&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;Backorder&lt;/TD&gt;&lt;TD&gt;B456&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;New Backorder&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/29/2019&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;Special Order&lt;/TD&gt;&lt;TD&gt;C789&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;N/A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/22/2019&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;Backorder&lt;/TD&gt;&lt;TD&gt;A123&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Came In To Stock&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/22/2019&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;In Stock&lt;/TD&gt;&lt;TD&gt;B456&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;New Backorder&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4/22/2019&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;TD&gt;Special Order&lt;/TD&gt;&lt;TD&gt;C789&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;N/A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 04 May 2019 13:31:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Changes-from-Current-Report-and-Last-Report-with-Text/m-p/683813#M461</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-04T13:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Changes from Current Report and Last Report with Text Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Changes-from-Current-Report-and-Last-Report-with-Text/m-p/684614#M477</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; i'm not clear about yur requirement. do you want to see -1 (week) value compare (-2) week? Correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How B456 in relative week -1 is "&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #000000; font-family: 'SegoeUI','Lato','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: initial; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-break: normal; word-spacing: 0px;"&gt;New Backorder&lt;/SPAN&gt;", it is in stock&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 16:17:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Changes-from-Current-Report-and-Last-Report-with-Text/m-p/684614#M477</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-05-06T16:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Changes from Current Report and Last Report with Text Values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Changes-from-Current-Report-and-Last-Report-with-Text/m-p/684618#M478</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; you can add a column using following expression and then based on the condition you can get indicator&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;My Last Week Value = 
VAR maxRelativeWeek = CALCULATE( MAX( Table1[Relative Week] ) ) -1
VAR lastWeekValue = CALCULATE( MAX( Table1[Comment] ), ALLEXCEPT( Table1, Table1[Item] ), Table1[Relative Week] = maxRelativeWeek )
RETURN 
lastWeekValue&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 May 2019 16:21:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparing-Changes-from-Current-Report-and-Last-Report-with-Text/m-p/684618#M478</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-05-06T16:21:47Z</dc:date>
    </item>
  </channel>
</rss>

