<?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 Help creating a dax measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-creating-a-dax-measure/m-p/4010983#M157861</link>
    <description>&lt;P&gt;Hi all, I am currently pretty new to Dax/PowerBi and am having trouble writing a Dax.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want my dax to correctly calculate and filter units by both department and customer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have three tables&lt;BR /&gt;SalesInvoice, Product, and Customer.&lt;/P&gt;&lt;P&gt;Within Product there is Department and Class.&lt;/P&gt;&lt;P&gt;Within SalesInvoice there is Class and Customer&lt;/P&gt;&lt;P&gt;Within Customer there is Customer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my current dax that is not working..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Units_Department_Customer = CALCULATE(&lt;BR /&gt;SUM(SalesInvoice[Units]),&lt;BR /&gt;FILTER(&lt;BR /&gt;SalesInvoice,&lt;BR /&gt;RELATED(Product[class]) = F_SalesInvoice[class],&lt;/P&gt;&lt;P&gt;--part that I don't know how to do&lt;BR /&gt;),&lt;BR /&gt;ALLEXCEPT(Product, Product[Department]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2024 09:53:34 GMT</pubDate>
    <dc:creator>matthewho</dc:creator>
    <dc:date>2024-06-26T09:53:34Z</dc:date>
    <item>
      <title>Help creating a dax measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-creating-a-dax-measure/m-p/4010983#M157861</link>
      <description>&lt;P&gt;Hi all, I am currently pretty new to Dax/PowerBi and am having trouble writing a Dax.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want my dax to correctly calculate and filter units by both department and customer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have three tables&lt;BR /&gt;SalesInvoice, Product, and Customer.&lt;/P&gt;&lt;P&gt;Within Product there is Department and Class.&lt;/P&gt;&lt;P&gt;Within SalesInvoice there is Class and Customer&lt;/P&gt;&lt;P&gt;Within Customer there is Customer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my current dax that is not working..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Units_Department_Customer = CALCULATE(&lt;BR /&gt;SUM(SalesInvoice[Units]),&lt;BR /&gt;FILTER(&lt;BR /&gt;SalesInvoice,&lt;BR /&gt;RELATED(Product[class]) = F_SalesInvoice[class],&lt;/P&gt;&lt;P&gt;--part that I don't know how to do&lt;BR /&gt;),&lt;BR /&gt;ALLEXCEPT(Product, Product[Department]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 09:53:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-creating-a-dax-measure/m-p/4010983#M157861</guid>
      <dc:creator>matthewho</dc:creator>
      <dc:date>2024-06-26T09:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help creating a dax measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-creating-a-dax-measure/m-p/4011030#M157864</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="765613" data-lia-user-login="matthewho" class="lia-mention lia-mention-user"&gt;matthewho&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please provide some dummy data along with your model. Also, provide your expected output so that we can try from our end.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sanalytics&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 10:18:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-creating-a-dax-measure/m-p/4011030#M157864</guid>
      <dc:creator>sanalytics</dc:creator>
      <dc:date>2024-06-26T10:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help creating a dax measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-creating-a-dax-measure/m-p/4011260#M157880</link>
      <description>&lt;LI-CODE lang="markup"&gt;Units_Department_Customer = 
CALCULATE(
    SUM(SalesInvoice[Units]),
    TREATAS(VALUES(Product[Class]), SalesInvoice[Class]),
    ALLEXCEPT(Product, Product[Department]),
    ALLEXCEPT(Customer, Customer[Customer])
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 26 Jun 2024 12:39:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-creating-a-dax-measure/m-p/4011260#M157880</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-06-26T12:39:18Z</dc:date>
    </item>
  </channel>
</rss>

