<?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 display info from another table? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1488492#M28552</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="177389" data-lia-user-login="ercwebdev" class="lia-mention lia-mention-user"&gt;ercwebdev&lt;/a&gt;&amp;nbsp;if you are creating a calculated column, try this code&lt;/P&gt;&lt;P&gt;=COUNTROWS(FILTER(RELATEDTABLE(Risks),Risks[RiskColour]="Red"))&lt;/P&gt;&lt;P&gt;if you are creating a measure, think the code of&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;might work well.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2020 01:35:45 GMT</pubDate>
    <dc:creator>wdx223_Daniel</dc:creator>
    <dc:date>2020-11-12T01:35:45Z</dc:date>
    <item>
      <title>How to display info from another table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1484887#M28378</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm really not sure what structure of DAX to use for this problem. I have 2 tables, one with the Projects and another table with all of the risks for the projects, so it is a one to many relationship.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to do a check of ALL the risks in the corresponding Risks table for each project to see if any are red.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, the number of red risks should be counted, displayed in the Projects[RedRisk] column with the count number and the background color changed to red. Can use conditional formating to change the BG color.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So putting it out there to see if someone has no doubt already done this and can share their method?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried lots things but can't not quite sure how to pull it off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have included an example of the tables to illustrate.&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;Thanks,&lt;/P&gt;&lt;P&gt;Alan&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 11:45:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1484887#M28378</guid>
      <dc:creator>ercwebdev</dc:creator>
      <dc:date>2020-11-10T11:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to display info from another table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1484970#M28385</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="177389" data-lia-user-login="ercwebdev" class="lia-mention lia-mention-user"&gt;ercwebdev&lt;/a&gt;&amp;nbsp;, you might want to use such a measure in a table/matrix visualization in Power BI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RedRisk = COUNTROWS(FILTER(Risks, Risks[RiskColour]="Red"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 12:42:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1484970#M28385</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-11-10T12:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to display info from another table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1485003#M28387</link>
      <description>&lt;P&gt;Hi there&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;, thanks for that - pretty decent stab at it! What that is doing is looking through all the rows and counting the red (a total of 29) and doing it for every row and putting the value in. Just need it now to filter on ProjectID = ProjectID, but no idea how to do that with DAX?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 12:53:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1485003#M28387</guid>
      <dc:creator>ercwebdev</dc:creator>
      <dc:date>2020-11-10T12:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to display info from another table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1485029#M28389</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="177389" data-lia-user-login="ercwebdev" class="lia-mention lia-mention-user"&gt;ercwebdev&lt;/a&gt;&amp;nbsp;, the most sophisticated part of DAX is filter propagation along with relationships among tables.&lt;/P&gt;&lt;P&gt;As to your example, if 'Project Data'[&lt;SPAN&gt;ProjectID] is dragged and dropped in a table/matrix viz, Risks[ProjectID] is at first hand automatically filtered by&amp;nbsp;'Project Data'[ProjectID] given that there exists such a relationship,&amp;nbsp;'Project Data'[ProjectID] 1:M&amp;nbsp;Risks[ProjectID].&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Better attach a mockup so that it's way much easier to get your issue done.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 13:03:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1485029#M28389</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-11-10T13:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to display info from another table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1485384#M28401</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Ok, have made a quick mockup and zipped (.pbix and Excel) if you want to download and try having a play:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!AtRktPvcDTo7dbfRYaTFut2IjhQ?e=NUDcJo" target="_blank"&gt;https://1drv.ms/u/s!AtRktPvcDTo7dbfRYaTFut2IjhQ?e=NUDcJo&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 16:06:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1485384#M28401</guid>
      <dc:creator>ercwebdev</dc:creator>
      <dc:date>2020-11-10T16:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to display info from another table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1487902#M28519</link>
      <description>&lt;P&gt;I've done some work on this and managed to get something that will suffice and do the job. Thought I would share it with the community.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Created a new Table with the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MyRedRiskTbl = 
FILTER(
Risks, 
Risks[RiskColour]="Red"
)&lt;/LI-CODE&gt;&lt;P&gt;This brings the Projects in that have a red. It seems to do a Distinct and doesn't duplicate them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then added a new column in the Project Data to look up and check if there is a corresponding value in the virtual table:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;RedRiskCheckTwo = 
LOOKUPVALUE(
MyRedRiskTbl[RiskColour],----- Result Column Name
MyRedRiskTbl[Project ID],--- Search column 
'Project Data'[Project ID] ----- Search Value 
, Blank()--- Not Match with condition returns Blank
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will then either insert 'Red' or leave it blank. I can then do some color formatting based on this.&lt;/P&gt;&lt;P&gt;Here is how it looks:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 16:29:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1487902#M28519</guid>
      <dc:creator>ercwebdev</dc:creator>
      <dc:date>2020-11-11T16:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to display info from another table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1488492#M28552</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="177389" data-lia-user-login="ercwebdev" class="lia-mention lia-mention-user"&gt;ercwebdev&lt;/a&gt;&amp;nbsp;if you are creating a calculated column, try this code&lt;/P&gt;&lt;P&gt;=COUNTROWS(FILTER(RELATEDTABLE(Risks),Risks[RiskColour]="Red"))&lt;/P&gt;&lt;P&gt;if you are creating a measure, think the code of&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;might work well.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 01:35:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1488492#M28552</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2020-11-12T01:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to display info from another table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1490336#M28616</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp; - that works! Much appreciated. I knew there must be a way of doing this, but it's alwasy easy if you know how. Many thanks to both for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Alan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 11:54:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1490336#M28616</guid>
      <dc:creator>ercwebdev</dc:creator>
      <dc:date>2020-11-12T11:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to display info from another table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1496151#M28843</link>
      <description>&lt;P&gt;Just a quick footnote on this - the 'accepted solution' filters the records based on IDs, i.e .it will only return records that have red risks, so it removes all other records instead of including them but giving them a value of zero.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 11:02:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-display-info-from-another-table/m-p/1496151#M28843</guid>
      <dc:creator>ercwebdev</dc:creator>
      <dc:date>2020-11-16T11:02:55Z</dc:date>
    </item>
  </channel>
</rss>

