<?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: Need help with Direct query tables and local tables when in limited relationship. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-with-Direct-query-tables-and-local-tables-when-in/m-p/2855157#M39372</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please try the steps below to get it:&lt;/P&gt;
&lt;P&gt;1. Put the field &lt;STRONG&gt;[Need Help Recipients]&lt;/STRONG&gt; of the table '&lt;STRONG&gt;task&lt;/STRONG&gt;' to &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;replace&lt;/FONT&gt; &lt;/STRONG&gt;the measure [&lt;SPAN&gt;NeeHelp_recp&lt;/SPAN&gt;] on the visual&lt;/P&gt;
&lt;P&gt;2. Create a &lt;STRONG&gt;measure&lt;/STRONG&gt; as below to judge if the related mails fulfill the conditions&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
VAR _tab =
    CALCULATETABLE (
        VALUES ( task[Need Help Recipients] ),
        FILTER (
            task,
            task[Regarding] = Merge1[cmp_name.3]
                &amp;amp;&amp;amp; task[Need Help Section] = Merge1[cmp_relevantsectionidname]
        )
    )
RETURN
    IF ( SELECTEDVALUE ( task[Need Help Recipients] ), 1, 0 )&lt;/LI-CODE&gt;
&lt;P&gt;3. Apply a visual-level filter with the condition (&lt;EM&gt;&lt;STRONG&gt;Flag is 1&lt;/STRONG&gt;&lt;/EM&gt;) on the below visual&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yingyinr_0-1666337484020.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/808362iDC18686F65DB4CBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yingyinr_0-1666337484020.png" alt="yingyinr_0-1666337484020.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Fri, 21 Oct 2022 07:31:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-21T07:31:46Z</dc:date>
    <item>
      <title>Need help with Direct query tables and local tables when in limited relationship.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-with-Direct-query-tables-and-local-tables-when-in/m-p/2850367#M39324</link>
      <description>&lt;P&gt;Hi All&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;There are 3 tables 'Task' and 'Localextension' connected in direct query and 'Merge1' is the local table. Relation ship is as below. I joined using Id column which is common in all 3 tables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harshi_bi_0-1666157475170.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/806504iB93F0BAA1048915A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harshi_bi_0-1666157475170.png" alt="Harshi_bi_0-1666157475170.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need the out put as below For each request(Name) and section respective email id. Email id is available in 'Task' table. Name is from 'Local extension' and Relevantsection from 'Merge1' table. Currently, used below formula in a calculated column to the get result. However there are multiple rows exit in task table for each request, i need to fetch all the rows available for that request id and section name.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;NeeHelp_recp = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt; Result = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FIRSTNONBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(task[Need Help Recipients],&lt;/SPAN&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(task, task[Regarding] = Merge1[cmp_name.3] &amp;amp;&amp;amp; task[Need Help Section] = Merge1[cmp_relevantsectionidname] ))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harshi_bi_1-1666157807873.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/806506iFF052D723F394595/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harshi_bi_1-1666157807873.png" alt="Harshi_bi_1-1666157807873.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please help me on this. I tried multiple way but due to direct query there of lot limitations.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 05:42:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-with-Direct-query-tables-and-local-tables-when-in/m-p/2850367#M39324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-19T05:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Direct query tables and local tables when in limited relationship.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-with-Direct-query-tables-and-local-tables-when-in/m-p/2853010#M39347</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please &lt;STRONG&gt;update&lt;/STRONG&gt; the formula of &lt;STRONG&gt;[NeeHelp_recp]&lt;/STRONG&gt; as below and check if it can return your expected result...&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NeeHelp_recp =
VAR Result =
    CONCATENATEX (
        FILTER (
            task,
            task[Regarding] = Merge1[cmp_name.3]
                &amp;amp;&amp;amp; task[Need Help Section] = Merge1[cmp_relevantsectionidname]
        ),
        task[Need Help Recipients],
        "; "
    )
RETURN
    Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your tables&lt;SPAN&gt;&amp;nbsp;'Task', 'Merge1' and 'Localextension'&amp;nbsp;&lt;/SPAN&gt; (&lt;STRONG&gt;&lt;EM&gt;exclude&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;sensitive&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;data&lt;/EM&gt;&lt;/STRONG&gt;) with&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;if you can share a&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;pbix file. You can refer the following link to upload the file to the community. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDesktop%2FHow-to-upload-PBI-in-Community%2Fm-p%2F1672886&amp;amp;data=04%7C01%7Cv-yiruan%40microsoft.com%7C4f580813734d4a8355b008da16f6e91a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637847547341062885%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=YJvujige2YITXKbKED9JieQm5LBdf%2F3IYPM4ggdiijQ%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to upload PBI in Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 08:00:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-with-Direct-query-tables-and-local-tables-when-in/m-p/2853010#M39347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-20T08:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Direct query tables and local tables when in limited relationship.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-with-Direct-query-tables-and-local-tables-when-in/m-p/2853159#M39350</link>
      <description>&lt;P&gt;Hi, Thank you for the solution. It almost worked but i need all email id's as in a sperate row instead of concatenation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Harshi_bi_0-1666255893412.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/807604iC99DD8E32CE1CD08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Harshi_bi_0-1666255893412.png" alt="Harshi_bi_0-1666255893412.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 08:51:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-with-Direct-query-tables-and-local-tables-when-in/m-p/2853159#M39350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-20T08:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Direct query tables and local tables when in limited relationship.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-with-Direct-query-tables-and-local-tables-when-in/m-p/2855157#M39372</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please try the steps below to get it:&lt;/P&gt;
&lt;P&gt;1. Put the field &lt;STRONG&gt;[Need Help Recipients]&lt;/STRONG&gt; of the table '&lt;STRONG&gt;task&lt;/STRONG&gt;' to &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;replace&lt;/FONT&gt; &lt;/STRONG&gt;the measure [&lt;SPAN&gt;NeeHelp_recp&lt;/SPAN&gt;] on the visual&lt;/P&gt;
&lt;P&gt;2. Create a &lt;STRONG&gt;measure&lt;/STRONG&gt; as below to judge if the related mails fulfill the conditions&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
VAR _tab =
    CALCULATETABLE (
        VALUES ( task[Need Help Recipients] ),
        FILTER (
            task,
            task[Regarding] = Merge1[cmp_name.3]
                &amp;amp;&amp;amp; task[Need Help Section] = Merge1[cmp_relevantsectionidname]
        )
    )
RETURN
    IF ( SELECTEDVALUE ( task[Need Help Recipients] ), 1, 0 )&lt;/LI-CODE&gt;
&lt;P&gt;3. Apply a visual-level filter with the condition (&lt;EM&gt;&lt;STRONG&gt;Flag is 1&lt;/STRONG&gt;&lt;/EM&gt;) on the below visual&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yingyinr_0-1666337484020.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/808362iDC18686F65DB4CBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yingyinr_0-1666337484020.png" alt="yingyinr_0-1666337484020.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 07:31:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-with-Direct-query-tables-and-local-tables-when-in/m-p/2855157#M39372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-21T07:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Direct query tables and local tables when in limited relationship.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-help-with-Direct-query-tables-and-local-tables-when-in/m-p/2870537#M39463</link>
      <description>&lt;P&gt;It did not work for me, throwing error at Merge1[cmp_name.3] as column not found&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 11:02:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-help-with-Direct-query-tables-and-local-tables-when-in/m-p/2870537#M39463</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-28T11:02:59Z</dc:date>
    </item>
  </channel>
</rss>

