<?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: Getting a status from another table (periods of time) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-a-status-from-another-table-periods-of-time/m-p/842448#M6432</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;, how are you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, thank you for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cant use that formula because I need a single result for each line in my table 1.&lt;/P&gt;&lt;P&gt;I need a formula I can use in a column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In adittion, the status i need to get from the other table would have "text" format. I suppose I will not be able to use the MAX function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fede.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2019 13:22:22 GMT</pubDate>
    <dc:creator>FedeI</dc:creator>
    <dc:date>2019-11-11T13:22:22Z</dc:date>
    <item>
      <title>Getting a status from another table (periods of time)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-a-status-from-another-table-periods-of-time/m-p/841048#M6366</link>
      <description>&lt;P&gt;Hi to everyone&lt;/P&gt;&lt;P&gt;I would really apreciatte some help to solve an issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two different tables.&lt;/P&gt;&lt;P&gt;The first one has info of a delivery date . Based on that delivery, I need to get the status related to it on table 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2 is structured like this:&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Periods of time&lt;/TD&gt;&lt;TD&gt;Status&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;08/10/2019&lt;/TD&gt;&lt;TD&gt;H10H11 ´19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20/10/2019&lt;/TD&gt;&lt;TD&gt;Nov ´19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;06/11/2019&lt;/TD&gt;&lt;TD&gt;H11H12 ´19&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20/11/2019&lt;/TD&gt;&lt;TD&gt;Dic ´19&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the status considering in which period of time the delivery date is in.&lt;/P&gt;&lt;P&gt;For example, if the delivery is 15/11/2019, the status would be H11H12 ´19.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which function would you use? How would you do it?&lt;/P&gt;&lt;P&gt;Thanks very much!!&lt;/P&gt;&lt;P&gt;Federico.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 14:14:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-a-status-from-another-table-periods-of-time/m-p/841048#M6366</guid>
      <dc:creator>FedeI</dc:creator>
      <dc:date>2019-11-08T14:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a status from another table (periods of time)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-a-status-from-another-table-periods-of-time/m-p/841234#M6372</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="184932" data-lia-user-login="FedeI" class="lia-mention lia-mention-user"&gt;FedeI&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please create a measure as per below code and check if it works for you.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = CALCULATE(MAX(StatusInfo[Status]),TOPN(1,FILTER(ALL(StatusInfo),StatusInfo[Periods of time]&amp;lt;=MAX(DeliveryDate[Date])),StatusInfo[Periods of time]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 18:55:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-a-status-from-another-table-periods-of-time/m-p/841234#M6372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-11-08T18:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a status from another table (periods of time)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-a-status-from-another-table-periods-of-time/m-p/842448#M6432</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;, how are you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, thank you for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cant use that formula because I need a single result for each line in my table 1.&lt;/P&gt;&lt;P&gt;I need a formula I can use in a column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In adittion, the status i need to get from the other table would have "text" format. I suppose I will not be able to use the MAX function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fede.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 13:22:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-a-status-from-another-table-periods-of-time/m-p/842448#M6432</guid>
      <dc:creator>FedeI</dc:creator>
      <dc:date>2019-11-11T13:22:22Z</dc:date>
    </item>
  </channel>
</rss>

