<?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 use Joins and Subquries in Power Bi in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-use-Joins-and-Subquries-in-Power-Bi/m-p/2474416#M67508</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="378404" data-lia-user-login="kousar99" class="lia-mention lia-mention-user"&gt;kousar99&lt;/a&gt; , Please share a problem, while we can create a table and pass it as a filter. But in DAX we do it DAX way, maybe a better solution is available &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check&lt;/P&gt;
&lt;P&gt;Dax vs SQL -https://&lt;A href="http://www.youtube.com/watch?v=WlvQ_SGy4iA&amp;amp;list=PLPaNVDMhUXGZNyKU0PgG2g3P0c6CPjMnj" target="_blank"&gt;www.youtube.com/watch?v=WlvQ_SGy4iA&amp;amp;list=PLPaNVDMhUXGZNyKU0PgG2g3P0c6CPjMnj&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example &lt;/P&gt;
&lt;P&gt;measure =&lt;BR /&gt;var _tab = summarize(filter(Table,{empresa_id]=4),[tenant_id])&lt;BR /&gt;return &lt;BR /&gt;calculate(sum(Table[Value]), filter(Table,Table[tenant_id] in _tab))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure = &lt;BR /&gt;var _tab = summarize(filter(A, [date]= date(2020,11,05) &amp;amp;&amp;amp; [State] ="Step2" &amp;amp;&amp;amp; [Status] = "Status" ), A[FileName])&lt;BR /&gt;return &lt;BR /&gt;calculate(countrows(A) , filter(A , [FileName] in _tab &amp;amp;&amp;amp; [State] ="Step2" &amp;amp;&amp;amp; [Status] = "Status" ))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure =&lt;BR /&gt;var _tab = summarize(filter(all(users), users[usermail] in values(users[usermail]) || users[businessrecipient] in values(users[usermail])),users[businessunit])&lt;BR /&gt;return &lt;BR /&gt;calculate(countrows(masterlist), filter(masterlist, masterlist[businessunit] in _tab))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/treatas-function" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/treatas-function&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 09:07:46 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-04-25T09:07:46Z</dc:date>
    <item>
      <title>how to use Joins and Subquries in Power Bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-use-Joins-and-Subquries-in-Power-Bi/m-p/2474363#M67505</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I am using SQL queries and whatever the output is coming from queries same thing showing in form of charts in power bi.&lt;/P&gt;&lt;P&gt;Since I'm new to power bi and Dax, I need help and suggestions for how to use subqueries used in SQL ( As per my thinking filtering is done) and joins in power bi and Dax.&lt;BR /&gt;Looking for your kind response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Heena Kousar&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 08:47:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-use-Joins-and-Subquries-in-Power-Bi/m-p/2474363#M67505</guid>
      <dc:creator>kousar99</dc:creator>
      <dc:date>2022-04-25T08:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to use Joins and Subquries in Power Bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-use-Joins-and-Subquries-in-Power-Bi/m-p/2474416#M67508</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="378404" data-lia-user-login="kousar99" class="lia-mention lia-mention-user"&gt;kousar99&lt;/a&gt; , Please share a problem, while we can create a table and pass it as a filter. But in DAX we do it DAX way, maybe a better solution is available &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check&lt;/P&gt;
&lt;P&gt;Dax vs SQL -https://&lt;A href="http://www.youtube.com/watch?v=WlvQ_SGy4iA&amp;amp;list=PLPaNVDMhUXGZNyKU0PgG2g3P0c6CPjMnj" target="_blank"&gt;www.youtube.com/watch?v=WlvQ_SGy4iA&amp;amp;list=PLPaNVDMhUXGZNyKU0PgG2g3P0c6CPjMnj&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example &lt;/P&gt;
&lt;P&gt;measure =&lt;BR /&gt;var _tab = summarize(filter(Table,{empresa_id]=4),[tenant_id])&lt;BR /&gt;return &lt;BR /&gt;calculate(sum(Table[Value]), filter(Table,Table[tenant_id] in _tab))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure = &lt;BR /&gt;var _tab = summarize(filter(A, [date]= date(2020,11,05) &amp;amp;&amp;amp; [State] ="Step2" &amp;amp;&amp;amp; [Status] = "Status" ), A[FileName])&lt;BR /&gt;return &lt;BR /&gt;calculate(countrows(A) , filter(A , [FileName] in _tab &amp;amp;&amp;amp; [State] ="Step2" &amp;amp;&amp;amp; [Status] = "Status" ))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;measure =&lt;BR /&gt;var _tab = summarize(filter(all(users), users[usermail] in values(users[usermail]) || users[businessrecipient] in values(users[usermail])),users[businessunit])&lt;BR /&gt;return &lt;BR /&gt;calculate(countrows(masterlist), filter(masterlist, masterlist[businessunit] in _tab))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/treatas-function" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/treatas-function&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 09:07:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-use-Joins-and-Subquries-in-Power-Bi/m-p/2474416#M67508</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-25T09:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to use Joins and Subquries in Power Bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-use-Joins-and-Subquries-in-Power-Bi/m-p/2490021#M68521</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="378404" data-lia-user-login="kousar99" class="lia-mention lia-mention-user"&gt;kousar99&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Can you please share a pbix or some dummy data that keep raw data structure with expected results? It should help us clarify your scenario and test to coding formula.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 05:52:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-use-Joins-and-Subquries-in-Power-Bi/m-p/2490021#M68521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-03T05:52:58Z</dc:date>
    </item>
  </channel>
</rss>

