<?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 Extracting information from second table using ID (dataset data model so measures only?) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-information-from-second-table-using-ID-dataset-data/m-p/2417573#M63881</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bit of a complicated one and as I'm not too experienced with working with PowerBI datasets, I am a little stumped on how to proceed due to the limitations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have currently are two tables. Issue and Issue Attributes. I am trying to extract the data from the Issue Attributes table into the dashboard. Both tables have an Issue_ID number but only Issue has the "Created Date" field which I would like to use as a filter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normally I would just create a relationship between the two tables to allow me to reference the Issue table via the Issue ID to get the "Created Date" values but this is a company dataset I am linking to and the data model does not seem to have a relationship modelled between the two. I am also limited to creating measures only and no calculated columns due to the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using vlookupvalue and it will return the result I'm looking for but only one instance of it (I cannot seem to pass the list of issue_id as a parameter for searching).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas? Some sample data below:&lt;BR /&gt;&lt;BR /&gt;Issue&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Issue_ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Created Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Created By&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1165&lt;/TD&gt;&lt;TD&gt;25/03/2022&lt;/TD&gt;&lt;TD&gt;Jack Montogomery&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2149&lt;/TD&gt;&lt;TD&gt;13/04/2022&lt;/TD&gt;&lt;TD&gt;Mark Mitchell&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1032&lt;/TD&gt;&lt;TD&gt;16/06/2022&lt;/TD&gt;&lt;TD&gt;Mark Mitchell&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue Attributes&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Issue_ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Issue Type&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Issue Details&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1032&lt;/TD&gt;&lt;TD&gt;Safety&lt;/TD&gt;&lt;TD&gt;PPE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1165&lt;/TD&gt;&lt;TD&gt;Safety&lt;/TD&gt;&lt;TD&gt;Trip Hazard&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2149&lt;/TD&gt;&lt;TD&gt;Environmental&lt;/TD&gt;&lt;TD&gt;Dirty Water&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Fri, 25 Mar 2022 10:08:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-03-25T10:08:53Z</dc:date>
    <item>
      <title>Extracting information from second table using ID (dataset data model so measures only?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-information-from-second-table-using-ID-dataset-data/m-p/2417573#M63881</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bit of a complicated one and as I'm not too experienced with working with PowerBI datasets, I am a little stumped on how to proceed due to the limitations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have currently are two tables. Issue and Issue Attributes. I am trying to extract the data from the Issue Attributes table into the dashboard. Both tables have an Issue_ID number but only Issue has the "Created Date" field which I would like to use as a filter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normally I would just create a relationship between the two tables to allow me to reference the Issue table via the Issue ID to get the "Created Date" values but this is a company dataset I am linking to and the data model does not seem to have a relationship modelled between the two. I am also limited to creating measures only and no calculated columns due to the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using vlookupvalue and it will return the result I'm looking for but only one instance of it (I cannot seem to pass the list of issue_id as a parameter for searching).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas? Some sample data below:&lt;BR /&gt;&lt;BR /&gt;Issue&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Issue_ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Created Date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Created By&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1165&lt;/TD&gt;&lt;TD&gt;25/03/2022&lt;/TD&gt;&lt;TD&gt;Jack Montogomery&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2149&lt;/TD&gt;&lt;TD&gt;13/04/2022&lt;/TD&gt;&lt;TD&gt;Mark Mitchell&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1032&lt;/TD&gt;&lt;TD&gt;16/06/2022&lt;/TD&gt;&lt;TD&gt;Mark Mitchell&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issue Attributes&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Issue_ID&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Issue Type&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Issue Details&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1032&lt;/TD&gt;&lt;TD&gt;Safety&lt;/TD&gt;&lt;TD&gt;PPE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1165&lt;/TD&gt;&lt;TD&gt;Safety&lt;/TD&gt;&lt;TD&gt;Trip Hazard&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2149&lt;/TD&gt;&lt;TD&gt;Environmental&lt;/TD&gt;&lt;TD&gt;Dirty Water&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 25 Mar 2022 10:08:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-information-from-second-table-using-ID-dataset-data/m-p/2417573#M63881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-25T10:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting information from second table using ID (dataset data model so measures only?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-information-from-second-table-using-ID-dataset-data/m-p/2417603#M63884</link>
      <description>&lt;P&gt;If the entries in the Issues table are unique, i.e. it would have been a one-to-many relationship, then you can create a measure like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Created date measure = CALCULATE( SELECTEDVALUE(Issue[Created Date]), 
    TREATAS( { SELECTEDVALUE('Issue Attributes'[Issue_ID]) },Issue[Issue_ID] )
)&lt;/LI-CODE&gt;&lt;P&gt;and put that into a visualisation with details from the Issue Attributes table&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 10:21:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-information-from-second-table-using-ID-dataset-data/m-p/2417603#M63884</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-25T10:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting information from second table using ID (dataset data model so measures only?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-information-from-second-table-using-ID-dataset-data/m-p/2417629#M63886</link>
      <description>&lt;P&gt;Hello there&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;! Try using the TREATAS() function to apply filtering contextbetween two unrelated tables. Dont forget to use the VALUES() function the "many" side of the relationship. Something like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
CALCULATE(
SELECTEDVALUE(Issue[Created Date]), 
TREATAS( VALUES(Issue[Issue_ID]) , 'Issue Attributes'[Issue_ID])
)&lt;/LI-CODE&gt;
&lt;P&gt;Hope this answer solves your problem!&lt;BR /&gt;If you need any additional help please &lt;SPAN&gt;@&lt;/SPAN&gt; me in your reply.&lt;BR /&gt;If my reply provided you with a solution, please consider marking it as a solution &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt; or giving it a kudoe &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/gon%C3%A7alo-costa-b32253159" target="_blank"&gt;You can also check out my LinkedIn!&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Gonçalo Geraldes&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 10:32:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-information-from-second-table-using-ID-dataset-data/m-p/2417629#M63886</guid>
      <dc:creator>goncalogeraldes</dc:creator>
      <dc:date>2022-03-25T10:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting information from second table using ID (dataset data model so measures only?)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-information-from-second-table-using-ID-dataset-data/m-p/2418142#M63916</link>
      <description>&lt;P&gt;Thank you both, let me try those solutions and get back to you&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 14:22:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Extracting-information-from-second-table-using-ID-dataset-data/m-p/2418142#M63916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-25T14:22:07Z</dc:date>
    </item>
  </channel>
</rss>

