<?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 measure parent/child in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490317#M68541</link>
    <description>&lt;P&gt;Sorry, I did not understand that yo uwere using direct query.&lt;BR /&gt;&lt;BR /&gt;Yes you can but before creating the column click on the Fields panel (with every column measure etc) and select the right table (here customertable).&lt;BR /&gt;&lt;BR /&gt;If it is not working I do not have an answer anymore &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;PS: i looked on the microsoft documentation and created column with direct queries can not refer to multiple table....&lt;BR /&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-about" target="_blank" rel="noopener"&gt;Using DirectQuery in Power BI - Power BI | Microsoft Docs&lt;/A&gt;&lt;BR /&gt;Part modeling limitation&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2022 07:57:53 GMT</pubDate>
    <dc:creator>philouduv</dc:creator>
    <dc:date>2022-05-03T07:57:53Z</dc:date>
    <item>
      <title>Dax measure parent/child</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490135#M68526</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table with customer and one with orders, which is related.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I my report, I view all customers having orders where some criteria is set for the order.&lt;/P&gt;&lt;P&gt;I need to add a column where I count all the orders (not filtered) for each customer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 06:54:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490135#M68526</guid>
      <dc:creator>joki</dc:creator>
      <dc:date>2022-05-03T06:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure parent/child</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490143#M68528</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="385353" data-lia-user-login="joki" class="lia-mention lia-mention-user"&gt;joki&lt;/a&gt;,&lt;BR /&gt;It would be something like :&lt;BR /&gt;Count_order_by_custo = Calculate(COUNTROWS(ordertable),&lt;BR /&gt;Filter(ALL(ordertable),&lt;BR /&gt;customertable[customer] == ordertable[customer]))&lt;BR /&gt;&lt;BR /&gt;This column must be created in your &lt;STRONG&gt;DIMENSION&lt;/STRONG&gt; table (customer)&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 06:57:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490143#M68528</guid>
      <dc:creator>philouduv</dc:creator>
      <dc:date>2022-05-03T06:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure parent/child</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490222#M68531</link>
      <description>&lt;P&gt;Thanks I did someting like that before. I get the error "Can't fint&amp;nbsp;&lt;SPAN&gt;customertable[customer]" (customer)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 07:22:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490222#M68531</guid>
      <dc:creator>joki</dc:creator>
      <dc:date>2022-05-03T07:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure parent/child</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490230#M68532</link>
      <description>&lt;P&gt;customertable[customer] must be renamed depending the name of your data.&lt;BR /&gt;&lt;BR /&gt;It is TABLE[column_name] so in your case it would be the dimension table and the column with every customer name appearing only once.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 07:25:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490230#M68532</guid>
      <dc:creator>philouduv</dc:creator>
      <dc:date>2022-05-03T07:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure parent/child</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490241#M68533</link>
      <description>&lt;P&gt;I know I have done that&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 07:28:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490241#M68533</guid>
      <dc:creator>joki</dc:creator>
      <dc:date>2022-05-03T07:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure parent/child</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490252#M68534</link>
      <description>&lt;P&gt;If you are calculating this column in your DIMENSION table which is customertable it should work.&lt;BR /&gt;Otherwise share your data model because I probably miss something.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 07:31:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490252#M68534</guid>
      <dc:creator>philouduv</dc:creator>
      <dc:date>2022-05-03T07:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure parent/child</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490273#M68538</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see below. The issue is between "Contact" and "RecurringCharge"&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just wrote "Customer" and "Order" to simplify&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 07:38:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490273#M68538</guid>
      <dc:creator>joki</dc:creator>
      <dc:date>2022-05-03T07:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure parent/child</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490291#M68539</link>
      <description>&lt;P&gt;It looks like you are creating your column in the wrong place since when you create a column in the display screen it does not go always right.&amp;nbsp;&lt;BR /&gt;Go on modelling data :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;then select the right table and here create a column.&lt;BR /&gt;&lt;BR /&gt;Tell me if it works&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 07:46:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490291#M68539</guid>
      <dc:creator>philouduv</dc:creator>
      <dc:date>2022-05-03T07:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure parent/child</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490297#M68540</link>
      <description>&lt;P&gt;Then I can't use direct query right ?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 07:48:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490297#M68540</guid>
      <dc:creator>joki</dc:creator>
      <dc:date>2022-05-03T07:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure parent/child</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490317#M68541</link>
      <description>&lt;P&gt;Sorry, I did not understand that yo uwere using direct query.&lt;BR /&gt;&lt;BR /&gt;Yes you can but before creating the column click on the Fields panel (with every column measure etc) and select the right table (here customertable).&lt;BR /&gt;&lt;BR /&gt;If it is not working I do not have an answer anymore &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;PS: i looked on the microsoft documentation and created column with direct queries can not refer to multiple table....&lt;BR /&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-about" target="_blank" rel="noopener"&gt;Using DirectQuery in Power BI - Power BI | Microsoft Docs&lt;/A&gt;&lt;BR /&gt;Part modeling limitation&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 07:57:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490317#M68541</guid>
      <dc:creator>philouduv</dc:creator>
      <dc:date>2022-05-03T07:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure parent/child</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490478#M68553</link>
      <description>&lt;P&gt;I have now changes to "Import" (not direct query)&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to create the meassure in "&lt;SPAN&gt;modelling data" but get the same error&amp;nbsp;"Can't find&amp;nbsp;'core_crm Contact'[ContactId]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RecurringChargeTotalQty = Calculate(COUNTROWS('core_crm RecurringCharge'),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Filter(ALL('core_crm RecurringCharge'),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'core_crm Contact'[ContactId] = 'core_crm RecurringCharge'[Contact]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 May 2022 09:07:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2490478#M68553</guid>
      <dc:creator>joki</dc:creator>
      <dc:date>2022-05-03T09:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure parent/child</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2498264#M68996</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="385353" data-lia-user-login="joki" class="lia-mention lia-mention-user"&gt;joki&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want a measure. Please try this.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = COUNTROWS('core_crm RecurringCharge')&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If you want a calculated column.&amp;nbsp;Because some functions cannot be used under direct query, you need to convert the storage method of the table first.&amp;nbsp;Note that this operation is irreversible, you can consider whether to use it according to the situation.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please create this calculated column in table 'core_crm Contact'.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = CALCULATE(COUNTROWS('core_crm RecurringCharge'))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Attaching the PBIX file for reference, hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best Regards,&lt;BR /&gt;Gao&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Community Support Team&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If there is any post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3" color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#FF0000"&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to get your questions answered quickly&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;--&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to provide sample data&lt;/SPAN&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 09:38:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-parent-child/m-p/2498264#M68996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-06T09:38:23Z</dc:date>
    </item>
  </channel>
</rss>

