<?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: Traversing related tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Traversing-related-tables/m-p/3294294#M122686</link>
    <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="418584" data-lia-user-login="fpennisi" class="lia-mention lia-mention-user"&gt;fpennisi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, you want to get the content of one-end table in multi-end table. And you want to convert "2021/9/16 12:00" to 2021-09.&lt;BR /&gt;First of all, for your needs, we must first clarify that only one section of the table can filter the multi-terminal table;&lt;BR /&gt;The first way is to directly place the fields of one end table, and then check whether it can meet your needs.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The second is that you can create this measure to try :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = MAXX( ADDCOLUMNS('DownTimes' , "shortname" ,RELATED('Month'[Short name])) , [shortname])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secondly, for date conversion, in fact, we can directly use conditional formatting to convert date display:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 = FORMAT( MAX('Date'[Date]) , "yyyy-mm")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&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;
&lt;P&gt;If this method does not meet your needs, you can provide us with your special &lt;STRONG&gt;sample data&lt;/STRONG&gt; and the &lt;STRONG&gt;desired output sample&lt;/STRONG&gt; data in the form of &lt;STRONG&gt;tables&lt;/STRONG&gt;, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 01:54:28 GMT</pubDate>
    <dc:creator>v-yueyunzh-msft</dc:creator>
    <dc:date>2023-06-21T01:54:28Z</dc:date>
    <item>
      <title>Traversing related tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Traversing-related-tables/m-p/3291451#M122540</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in my report I have a table with events data and a time dimension.&lt;/P&gt;&lt;P&gt;The events table relates to the date table with the field "Start date".&lt;/P&gt;&lt;P&gt;I would like to create a measure that returns one of the properties in the month table of the dimension, using the existing relations, that corresponds to the month of the first registered event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g., if the first event happened at 12:00 of september 16th 2021, the measure should return 2021-09, which is the "short name" property of the month table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: I add below the schema of the tables, highlighting the involved fields for each relation using different colors.&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;</description>
      <pubDate>Mon, 19 Jun 2023 17:13:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Traversing-related-tables/m-p/3291451#M122540</guid>
      <dc:creator>fpennisi</dc:creator>
      <dc:date>2023-06-19T17:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Traversing related tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Traversing-related-tables/m-p/3294294#M122686</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="418584" data-lia-user-login="fpennisi" class="lia-mention lia-mention-user"&gt;fpennisi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, you want to get the content of one-end table in multi-end table. And you want to convert "2021/9/16 12:00" to 2021-09.&lt;BR /&gt;First of all, for your needs, we must first clarify that only one section of the table can filter the multi-terminal table;&lt;BR /&gt;The first way is to directly place the fields of one end table, and then check whether it can meet your needs.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The second is that you can create this measure to try :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = MAXX( ADDCOLUMNS('DownTimes' , "shortname" ,RELATED('Month'[Short name])) , [shortname])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secondly, for date conversion, in fact, we can directly use conditional formatting to convert date display:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 = FORMAT( MAX('Date'[Date]) , "yyyy-mm")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&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;
&lt;P&gt;If this method does not meet your needs, you can provide us with your special &lt;STRONG&gt;sample data&lt;/STRONG&gt; and the &lt;STRONG&gt;desired output sample&lt;/STRONG&gt; data in the form of &lt;STRONG&gt;tables&lt;/STRONG&gt;, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 01:54:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Traversing-related-tables/m-p/3294294#M122686</guid>
      <dc:creator>v-yueyunzh-msft</dc:creator>
      <dc:date>2023-06-21T01:54:28Z</dc:date>
    </item>
  </channel>
</rss>

