<?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: DAX statement does not see the table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-statement-does-not-see-the-table/m-p/952886#M10784</link>
    <description>&lt;P&gt;Ok Mariusz !&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I think I have figured it out.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;InfoColumn = if(CALCULATE(COUNTROWS(chosen_ip_addresses) &amp;gt; 0), RELATED(chosen_ip_addresses[Description]) , all_ip_addresses[Ip])&lt;BR /&gt;&lt;BR /&gt;This has solved my problem !&amp;nbsp;&lt;BR /&gt;Thank you for your time !!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Bart&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 28 Feb 2020 13:05:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-28T13:05:41Z</dc:date>
    <item>
      <title>DAX statement does not see the table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-statement-does-not-see-the-table/m-p/952695#M10760</link>
      <description>&lt;P&gt;Hi Guys !&amp;nbsp;&lt;BR /&gt;I have got a simple problem, but for some reason under DAX it is not so simple.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have got two tables:&lt;BR /&gt;i); all_ip_addresses,&amp;nbsp; ii); chosen_ip_addresses&lt;/P&gt;&lt;P&gt;ii); Chosen ip addresses contain two columns, the addresses and description for each.&lt;/P&gt;&lt;P&gt;In both cases I operate with String.&lt;BR /&gt;&lt;BR /&gt;I was going to create a simple column with IF statement that will check if chosen ip's are contained within some of those in all_ip_addresses. If they are, print the description from ii); chosen_ip_addresses, else print ip address from all_ip_addresses.&amp;nbsp;&lt;BR /&gt;When I am trying to do that, DAX does not seem to see my chosen_ip_addresses table at all.&amp;nbsp;&lt;BR /&gt;The relationship between tables seem to be created correctly as when applying data to a simple table in visualization it seems to work.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Unfotunatelly the data is sensitive and I can not pass it over. I hope that I clearly explained it.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the column would end up like :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wanted_Output&lt;BR /&gt;__________________&lt;/P&gt;&lt;P&gt;1.1.1.1&lt;/P&gt;&lt;P&gt;2.2.2.2&lt;/P&gt;&lt;P&gt;chat_service&lt;/P&gt;&lt;P&gt;2.3.4.5&lt;/P&gt;&lt;P&gt;Antivirus&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;Thank you in Advance !&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Bart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 10:54:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-statement-does-not-see-the-table/m-p/952695#M10760</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-28T10:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: DAX statement does not see the table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-statement-does-not-see-the-table/m-p/952709#M10763</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use RELATED or RELATEDTABLE functions when referring to another table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Best Regards,&lt;BR /&gt;Mariusz&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accepting it as the solution&lt;/I&gt;&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Please feel free to connect with me.&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/mariusz-repczynski-065a7362/" target="_blank"&gt; LinkedIn &lt;/A&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 11:02:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-statement-does-not-see-the-table/m-p/952709#M10763</guid>
      <dc:creator>Mariusz</dc:creator>
      <dc:date>2020-02-28T11:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: DAX statement does not see the table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-statement-does-not-see-the-table/m-p/952710#M10764</link>
      <description>&lt;P&gt;If what&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81408" data-lia-user-login="Mariusz" class="lia-mention lia-mention-user"&gt;Mariusz&lt;/a&gt;&amp;nbsp;says doesn't work you might try LOOKUPVALUE.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 11:03:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-statement-does-not-see-the-table/m-p/952710#M10764</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-02-28T11:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: DAX statement does not see the table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-statement-does-not-see-the-table/m-p/952752#M10767</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;InfoColumn= IF(CONTAINS(RELATEDTABLE(chosen_ip_addresses),chosen_ip_addresses[Ip], all_ip_addresses[Ip]), chosen_ip_address[description], all_ip_addresses[Ip])&lt;/EM&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;I have tried that just before texting here, maybe I am just aproaching it incorrectly.&lt;BR /&gt;Just at the end when I am trying to get the description, the DAX does not see that table/column, and I can not get that value.&lt;BR /&gt;Does my example at the top makes some sence ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I was kind of based from this :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Column =
IF (
    CONTAINS ( RELATEDTABLE ( Table2 ), Table2[Country of Origin], "CHILE" ),
    "CHILE",
    "OTHER COUNTRIES"
)&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you for you time and help.&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Bart&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 11:28:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-statement-does-not-see-the-table/m-p/952752#M10767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-28T11:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: DAX statement does not see the table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-statement-does-not-see-the-table/m-p/952839#M10776</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try columns like below, this will check if there was any transaction in&amp;nbsp;chosen_ip_addresses table related ( using active relationship ) to the table the column is in.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
CALCULATE(
    COUNTROWS( chosen_ip_addresses ) &amp;gt; 0 
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Best Regards,&lt;BR /&gt;Mariusz&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accepting it as the solution&lt;/I&gt;&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Please feel free to connect with me.&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/mariusz-repczynski-065a7362/" target="_blank"&gt; LinkedIn &lt;/A&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 12:17:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-statement-does-not-see-the-table/m-p/952839#M10776</guid>
      <dc:creator>Mariusz</dc:creator>
      <dc:date>2020-02-28T12:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: DAX statement does not see the table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-statement-does-not-see-the-table/m-p/952852#M10779</link>
      <description>&lt;P&gt;Hey Mariusz !&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;That seems to be working, I am getting a list of chosen_ip_addresses when its true.&lt;BR /&gt;Might be a "stupid" question but, how would i get the description from chosen_ip_addresses to be visible in place of TRUE and the&amp;nbsp; ip address from all_ip_addresses in place of FALSE ?&amp;nbsp;&lt;BR /&gt;I really appreciate your help,&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Bart&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 12:36:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-statement-does-not-see-the-table/m-p/952852#M10779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-28T12:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: DAX statement does not see the table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-statement-does-not-see-the-table/m-p/952868#M10781</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you send a screenshot of the relationship between these two tables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Best Regards,&lt;BR /&gt;Mariusz&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accepting it as the solution&lt;/I&gt;&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Please feel free to connect with me.&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/mariusz-repczynski-065a7362/" target="_blank"&gt; LinkedIn &lt;/A&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 12:54:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-statement-does-not-see-the-table/m-p/952868#M10781</guid>
      <dc:creator>Mariusz</dc:creator>
      <dc:date>2020-02-28T12:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: DAX statement does not see the table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-statement-does-not-see-the-table/m-p/952886#M10784</link>
      <description>&lt;P&gt;Ok Mariusz !&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I think I have figured it out.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;InfoColumn = if(CALCULATE(COUNTROWS(chosen_ip_addresses) &amp;gt; 0), RELATED(chosen_ip_addresses[Description]) , all_ip_addresses[Ip])&lt;BR /&gt;&lt;BR /&gt;This has solved my problem !&amp;nbsp;&lt;BR /&gt;Thank you for your time !!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;BR /&gt;Bart&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Feb 2020 13:05:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-statement-does-not-see-the-table/m-p/952886#M10784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-28T13:05:41Z</dc:date>
    </item>
  </channel>
</rss>

