<?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: Get comments from another table in matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-comments-from-another-table-in-matrix/m-p/3889632#M151709</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="698337" data-lia-user-login="yoa380" class="lia-mention lia-mention-user"&gt;yoa380&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tweaked your formula a little bit, and it seems to produce your required output.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I attach the pbix file as an example.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2024 15:58:08 GMT</pubDate>
    <dc:creator>DataNinja777</dc:creator>
    <dc:date>2024-05-03T15:58:08Z</dc:date>
    <item>
      <title>Get comments from another table in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-comments-from-another-table-in-matrix/m-p/3888812#M151681</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have imported in my PBI model a table from Excel where people can put comments.&lt;/P&gt;&lt;P&gt;This fact table 1 has column A = YearWeek in text / column B = Category of products in text / Column C = Comments in text.&lt;/P&gt;&lt;P&gt;I have another fact table 2 with Category of products and some figures&lt;/P&gt;&lt;P&gt;I have a dimension table of products where Category of products is. This table is linked to both Table 1 and 2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a matrix where Line = Category of product from dimension table.&lt;/P&gt;&lt;P&gt;Then matrix values are multiples and comes from measures created in Table 2.&lt;/P&gt;&lt;P&gt;I would like to add as final column of this matrix the comments from Table 1&lt;/P&gt;&lt;P&gt;Can I use a kind of lookup dax formula ?&lt;/P&gt;&lt;P&gt;I always need to show in this comments column = the comment from table 1 for concerned category of product and for yearweek = MIN(yearweek) of another table 3&lt;/P&gt;&lt;P&gt;yearweek is in text in both tables&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 10:51:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-comments-from-another-table-in-matrix/m-p/3888812#M151681</guid>
      <dc:creator>yoa380</dc:creator>
      <dc:date>2024-05-03T10:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get comments from another table in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-comments-from-another-table-in-matrix/m-p/3889535#M151702</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="698337" data-lia-user-login="yoa380" class="lia-mention lia-mention-user"&gt;yoa380&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get your required output by using ConcatenateX like below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I am assuming that your 'Table 1' and 'Table 3' have relationship with the Calendar dimension table.&amp;nbsp; In order to use the min function, you need to convert "2024W19" to numerical format like 2024.19.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 15:02:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-comments-from-another-table-in-matrix/m-p/3889535#M151702</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-05-03T15:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get comments from another table in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-comments-from-another-table-in-matrix/m-p/3889563#M151704</link>
      <description>&lt;P&gt;thanks for quick reply, I don't really need to use my calendar table here as my table 3 (even if several lines) will always only have a single value for YearWeek. I thought using MIN was good idea because I can't just say "equals to YearWeek column".&lt;/P&gt;&lt;P&gt;It's just to make the filter on Table 1.&lt;/P&gt;&lt;P&gt;I tried your logic but I get an error message.&lt;/P&gt;&lt;P&gt;I also tried :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Comments =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONCATENATEX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Table1,Table1[YearWeek]=MIN(Table3[YearWeek])),Table1[Comments])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It finds my values but it put them all stuck together, without taking into account the Category.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Example for CAT1 it will put = Nothing to declare Trials&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 May 2024 15:25:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-comments-from-another-table-in-matrix/m-p/3889563#M151704</guid>
      <dc:creator>yoa380</dc:creator>
      <dc:date>2024-05-03T15:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get comments from another table in matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-comments-from-another-table-in-matrix/m-p/3889632#M151709</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="698337" data-lia-user-login="yoa380" class="lia-mention lia-mention-user"&gt;yoa380&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tweaked your formula a little bit, and it seems to produce your required output.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I attach the pbix file as an example.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2024 15:58:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-comments-from-another-table-in-matrix/m-p/3889632#M151709</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-05-03T15:58:08Z</dc:date>
    </item>
  </channel>
</rss>

