<?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 retrieve the data of a higher occurrence in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-retrieve-the-data-of-a-higher-occurrence/m-p/3010672#M102057</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433015" data-lia-user-login="v-yueyunzh-msft" class="lia-mention lia-mention-user"&gt;v-yueyunzh-msft&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you time and for help, It work perfectly !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't clearly understand the command but i&amp;nbsp;will delve deeper into the subject.&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;If anyone passes by looking for similar help, maybe we can add that in the command,&amp;nbsp;#"Changed Type" refers to the previous query and must be changed depending on our processing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(x)=&amp;gt; if List.IsEmpty( Table.SelectRows(#"Changed Type",(y)=&amp;gt; y[A]=x[B])[C] ) then null else
Table.SelectRows(#"Changed Type",(y)=&amp;gt; y[A]=x[B])[C]{0}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2023 08:44:05 GMT</pubDate>
    <dc:creator>MarcoCast</dc:creator>
    <dc:date>2023-01-10T08:44:05Z</dc:date>
    <item>
      <title>How to retrieve the data of a higher occurrence</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-retrieve-the-data-of-a-higher-occurrence/m-p/3008725#M101945</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&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;I have Column A and Column B with two references.&lt;/P&gt;&lt;P&gt;Columns A and B talk about the same thing.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Column A is the current reference.&lt;BR /&gt;Column B is the previous reference of column A.&lt;/P&gt;&lt;P&gt;Column C gives the date of reference A.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am looking to have a column D which gives the date of the reference B based on column C.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example of what I have in mind:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me please ?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 10:50:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-retrieve-the-data-of-a-higher-occurrence/m-p/3008725#M101945</guid>
      <dc:creator>MarcoCast</dc:creator>
      <dc:date>2023-01-09T10:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the data of a higher occurrence</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-retrieve-the-data-of-a-higher-occurrence/m-p/3010185#M102032</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="496156" data-lia-user-login="MarcoCast" class="lia-mention lia-mention-user"&gt;MarcoCast&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can refer to :&lt;BR /&gt;(1)We can click "Custom Column" and enter this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;(x)=&amp;gt; if List.IsEmpty( Table.SelectRows(#"Changed Type",(y)=&amp;gt; y[A]=x[B])[C] ) then null else
Table.SelectRows(#"Changed Type",(y)=&amp;gt; y[A]=x[B])[C]{0}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2)Then we can meet your need:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Second, you need to delete the "each" if it exist !&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 02:40:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-retrieve-the-data-of-a-higher-occurrence/m-p/3010185#M102032</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-01-10T02:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the data of a higher occurrence</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-retrieve-the-data-of-a-higher-occurrence/m-p/3010672#M102057</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="433015" data-lia-user-login="v-yueyunzh-msft" class="lia-mention lia-mention-user"&gt;v-yueyunzh-msft&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you time and for help, It work perfectly !&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't clearly understand the command but i&amp;nbsp;will delve deeper into the subject.&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;If anyone passes by looking for similar help, maybe we can add that in the command,&amp;nbsp;#"Changed Type" refers to the previous query and must be changed depending on our processing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(x)=&amp;gt; if List.IsEmpty( Table.SelectRows(#"Changed Type",(y)=&amp;gt; y[A]=x[B])[C] ) then null else
Table.SelectRows(#"Changed Type",(y)=&amp;gt; y[A]=x[B])[C]{0}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 08:44:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-retrieve-the-data-of-a-higher-occurrence/m-p/3010672#M102057</guid>
      <dc:creator>MarcoCast</dc:creator>
      <dc:date>2023-01-10T08:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve the data of a higher occurrence</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-retrieve-the-data-of-a-higher-occurrence/m-p/3010757#M102061</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="496156" data-lia-user-login="MarcoCast" class="lia-mention lia-mention-user"&gt;MarcoCast&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes , the&amp;nbsp;&lt;SPAN&gt;#"Changed Type" refers to the previous query . You can use other step who has the [A],[B],[C] columns also ,and you can also create a&amp;nbsp;fixed name to solve this problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Aniya Zhang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt; it as the solution&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 09:17:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-retrieve-the-data-of-a-higher-occurrence/m-p/3010757#M102061</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-01-10T09:17:28Z</dc:date>
    </item>
  </channel>
</rss>

