<?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: Can a Lookup Value return Last week values? in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Can-a-Lookup-Value-return-Last-week-values/m-p/2383929#M856481</link>
    <description>&lt;P&gt;OK, change the relationship between calendar table and main table - should be 1:m with single filter direction i.e. calendar filters main table.&lt;/P&gt;
&lt;P&gt;Replace the date in the visual with the date from the calendar table. (that's why you've created it).&lt;/P&gt;
&lt;P&gt;Here's a measure to test:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TProgLastWeek = VAR _weekNo = MAX('Calendar'[Week number]) - 1
RETURN
CALCULATE(MIN(Data[Progress]), 
FILTER(ALL(Data), Data[Issue ID] = MAX(Data[Issue ID]) &amp;amp;&amp;amp; Data[Category] = MAX(Data[Category])) , 
FILTER(ALL('Calendar'),'Calendar'[Week number] = _weekNo))&lt;/LI-CODE&gt;
&lt;P&gt;I put it together quickly so please test at your side.&lt;/P&gt;
&lt;P&gt;Let me know how it goes.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2022 16:21:55 GMT</pubDate>
    <dc:creator>HotChilli</dc:creator>
    <dc:date>2022-03-09T16:21:55Z</dc:date>
    <item>
      <title>Can a Lookup Value return Last week values?</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Can-a-Lookup-Value-return-Last-week-values/m-p/2383512#M856340</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a little challenge that I hope you can help me with.&lt;BR /&gt;&lt;BR /&gt;The sample data I am using holds dummy data for employees and their progress on deliveries. In my main table, I have a progress column, and it gets updated every day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to do some analysis to compare the progress made on a weekly basis, based on the selected week. Not sure how to do so in a measure. I have looked online and most of last week calculations are made to return values but not text. Would lookupvalue work in my case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please help in delivering this measure or even a calculated column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The outcome in excel looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://easyupload.io/j1qho8" target="_self"&gt;Sample File (includes pbix &amp;amp; excel file).&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 12:27:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Can-a-Lookup-Value-return-Last-week-values/m-p/2383512#M856340</guid>
      <dc:creator>H_insight</dc:creator>
      <dc:date>2022-03-09T12:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can a Lookup Value return Last week values?</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Can-a-Lookup-Value-return-Last-week-values/m-p/2383635#M856371</link>
      <description>&lt;P&gt;Can you explain the logic please?&lt;/P&gt;
&lt;P&gt;--&lt;/P&gt;
&lt;P&gt;The data in the provided pbix and excel is not the same as shown in the picture (Peter Washington category fields are different between weeks)&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 13:46:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Can-a-Lookup-Value-return-Last-week-values/m-p/2383635#M856371</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2022-03-09T13:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can a Lookup Value return Last week values?</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Can-a-Lookup-Value-return-Last-week-values/m-p/2383688#M856390</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81111" data-lia-user-login="HotChilli" class="lia-mention lia-mention-user"&gt;HotChilli&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for looking into my question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have updated the&lt;A href="https://easyupload.io/0342ub" target="_self"&gt; sample file&lt;/A&gt;&amp;nbsp;to fix the misalignment. Apologies for that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The logic is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each [Issue_ID], I want to return the [Progress] from “Last Week”&lt;/P&gt;&lt;P&gt;Where [Issue_ID] = [Issue_ID]&lt;/P&gt;&lt;P&gt;And [Category] = [Category]&lt;BR /&gt;&lt;BR /&gt;For example (Peter Washington), on the [Date] 07/02/2022 had [Issue_id] 818384 and [Category] "16. Cat", in the new measure I want to get [Progress] "Not Started" where it goes back 1 week (from the selected date value) which is [Date] 01/02/2022, [Issue_id] 818384 and [Category] "16. Cat".&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;&lt;P&gt;Hope the above helps?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 14:10:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Can-a-Lookup-Value-return-Last-week-values/m-p/2383688#M856390</guid>
      <dc:creator>H_insight</dc:creator>
      <dc:date>2022-03-09T14:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can a Lookup Value return Last week values?</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Can-a-Lookup-Value-return-Last-week-values/m-p/2383929#M856481</link>
      <description>&lt;P&gt;OK, change the relationship between calendar table and main table - should be 1:m with single filter direction i.e. calendar filters main table.&lt;/P&gt;
&lt;P&gt;Replace the date in the visual with the date from the calendar table. (that's why you've created it).&lt;/P&gt;
&lt;P&gt;Here's a measure to test:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TProgLastWeek = VAR _weekNo = MAX('Calendar'[Week number]) - 1
RETURN
CALCULATE(MIN(Data[Progress]), 
FILTER(ALL(Data), Data[Issue ID] = MAX(Data[Issue ID]) &amp;amp;&amp;amp; Data[Category] = MAX(Data[Category])) , 
FILTER(ALL('Calendar'),'Calendar'[Week number] = _weekNo))&lt;/LI-CODE&gt;
&lt;P&gt;I put it together quickly so please test at your side.&lt;/P&gt;
&lt;P&gt;Let me know how it goes.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 16:21:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Can-a-Lookup-Value-return-Last-week-values/m-p/2383929#M856481</guid>
      <dc:creator>HotChilli</dc:creator>
      <dc:date>2022-03-09T16:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can a Lookup Value return Last week values?</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Can-a-Lookup-Value-return-Last-week-values/m-p/2384255#M856596</link>
      <description>&lt;P&gt;Thank you very much for helping me&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81111" data-lia-user-login="HotChilli" class="lia-mention lia-mention-user"&gt;HotChilli&lt;/a&gt;. Result achieved!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 19:56:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Can-a-Lookup-Value-return-Last-week-values/m-p/2384255#M856596</guid>
      <dc:creator>H_insight</dc:creator>
      <dc:date>2022-03-09T19:56:48Z</dc:date>
    </item>
  </channel>
</rss>

