<?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: How to show latest SOH from latest week only in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-latest-SOH-from-latest-week-only/m-p/3432315#M130138</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501875" data-lia-user-login="Lisaal95" class="lia-mention lia-mention-user"&gt;Lisaal95&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sounds like your task can be accomplished by various different means.&amp;nbsp; I don't know your exact data model, but what about experimenting with lastnonblank function?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2023 05:19:57 GMT</pubDate>
    <dc:creator>DataNinja777</dc:creator>
    <dc:date>2023-09-15T05:19:57Z</dc:date>
    <item>
      <title>How to show latest SOH from latest week only</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-latest-SOH-from-latest-week-only/m-p/3429718#M129998</link>
      <description>&lt;P&gt;What measure an I use that shows results only if the data for the latest week is available.&lt;/P&gt;&lt;P&gt;For example I only want the SOH to show for the 10/09/23 date which is the latest week the rest should be nil.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Latest Report Date&lt;/TD&gt;&lt;TD&gt;Latest SOH&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer1&lt;/TD&gt;&lt;TD&gt;10/09/2023&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer2&lt;/TD&gt;&lt;TD&gt;3/09/2023&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer3&lt;/TD&gt;&lt;TD&gt;10/09/2023&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer4&lt;/TD&gt;&lt;TD&gt;3/09/2023&lt;/TD&gt;&lt;TD&gt;400&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer5&lt;/TD&gt;&lt;TD&gt;10/09/2023&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 14 Sep 2023 01:39:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-latest-SOH-from-latest-week-only/m-p/3429718#M129998</guid>
      <dc:creator>Lisaal95</dc:creator>
      <dc:date>2023-09-14T01:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to show latest SOH from latest week only</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-latest-SOH-from-latest-week-only/m-p/3429884#M130005</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501875" data-lia-user-login="Lisaal95" class="lia-mention lia-mention-user"&gt;Lisaal95&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dax measure like below will generate the output you require.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I didn't properly build a data model for this task (i.e., no separate dimension table was created), but I attach the link to the pbix file below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AlqFfzVTqicpnho6coJiMKOCtgyo?e=0I0abV" target="_blank"&gt;Lastdate.pbix&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 03:52:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-latest-SOH-from-latest-week-only/m-p/3429884#M130005</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2023-09-14T03:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to show latest SOH from latest week only</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-latest-SOH-from-latest-week-only/m-p/3431987#M130120</link>
      <description>&lt;P&gt;Thank you however, I want to see the SOH units by Customer&amp;nbsp; that are available excluding any old week data if possible. Need to see by customer and item code. Ideally if certain customers have not provided latest week data it will not appear in the results.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 23:41:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-latest-SOH-from-latest-week-only/m-p/3431987#M130120</guid>
      <dc:creator>Lisaal95</dc:creator>
      <dc:date>2023-09-14T23:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to show latest SOH from latest week only</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-latest-SOH-from-latest-week-only/m-p/3432097#M130130</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501875" data-lia-user-login="Lisaal95" class="lia-mention lia-mention-user"&gt;Lisaal95&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've remodeled the data model and properly created a separate calendar table as a date dimension table this time instead of just using the date field in the fact table to achieve your required output.&amp;nbsp; (It is always a best practice to properly prepare the data model with star schema rather than trying to jumble together everything in a fact table without properly creating a relationship with a dimension table like in my first response.&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The current data model looks like below:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This produces your required output as shown below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I attach the link to the updated pbix file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AlqFfzVTqicpnho6coJiMKOCtgyo?e=FSzWl4" target="_blank" rel="noopener"&gt;Lastdate.pbix&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 02:17:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-latest-SOH-from-latest-week-only/m-p/3432097#M130130</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2023-09-15T02:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to show latest SOH from latest week only</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-latest-SOH-from-latest-week-only/m-p/3432259#M130134</link>
      <description>&lt;P&gt;Thanks, i tried this before and not getting the required output. Reason being the Latest date is not always the report date. We have sales and customer sell-through. Sales are uploaded daily but customer sell-through reports are uploaded weekly. Need the latest date from the customer sell-through only. For example, if i run this measure today the latest date in the dataset will be from yesterday not end of the prior week.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 04:18:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-latest-SOH-from-latest-week-only/m-p/3432259#M130134</guid>
      <dc:creator>Lisaal95</dc:creator>
      <dc:date>2023-09-15T04:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to show latest SOH from latest week only</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-latest-SOH-from-latest-week-only/m-p/3432315#M130138</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501875" data-lia-user-login="Lisaal95" class="lia-mention lia-mention-user"&gt;Lisaal95&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sounds like your task can be accomplished by various different means.&amp;nbsp; I don't know your exact data model, but what about experimenting with lastnonblank function?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 05:19:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-latest-SOH-from-latest-week-only/m-p/3432315#M130138</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2023-09-15T05:19:57Z</dc:date>
    </item>
  </channel>
</rss>

