<?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: Create a measure with filter customer = customer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-with-filter-customer-customer/m-p/2554824#M72471</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;would you please provide more details?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2022 09:05:41 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-06-02T09:05:41Z</dc:date>
    <item>
      <title>Create a measure with filter customer = customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-with-filter-customer-customer/m-p/2554800#M72464</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am trying to create a measure with values from different tables. They all have a 'customer' column and there are relationships (1:many). Now I want to return the values from certain columns, only when Customer = Customer. If I create a filter Customer = "Customer Name 1" it works, but then I need to create a meassure for every single customer.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How can I get around this?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 08:52:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-with-filter-customer-customer/m-p/2554800#M72464</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-02T08:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure with filter customer = customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-with-filter-customer-customer/m-p/2554824#M72471</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;would you please provide more details?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 09:05:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-with-filter-customer-customer/m-p/2554824#M72471</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-02T09:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure with filter customer = customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-with-filter-customer-customer/m-p/2554999#M72494</link>
      <description>&lt;P&gt;My apologies, I didn't know how to describe the issue properly without sharing too much information about what my data looks like.&lt;BR /&gt;&lt;BR /&gt;Let me try to give a simplified example:&lt;BR /&gt;&lt;BR /&gt;So I have table 'Machines' and 'Average machine price in thousands' (and in practice several more) and I want to calculate the values in these tables as if there is a row context based on the Customer name. So I want to grab the value in Customer name and only multiply the values where customer names are the same, so multiply the value of Customer 1 in one table with the value of customer table in the other.&amp;nbsp;&lt;BR /&gt;Machines&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Customer name&lt;/TD&gt;&lt;TD&gt;Machines&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer 1&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer 2&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer 3&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer 4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer 5&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Average machine price in thousands&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Customer Name&lt;/TD&gt;&lt;TD&gt;Average amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer 1&lt;/TD&gt;&lt;TD&gt;800&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer 2&lt;/TD&gt;&lt;TD&gt;746&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer 3&lt;/TD&gt;&lt;TD&gt;479&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer 4&lt;/TD&gt;&lt;TD&gt;401&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Customer 5&lt;/TD&gt;&lt;TD&gt;645&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to multiply 'Machines' with Average Machine Price in Thousands' to get the total spend per customer for instance. (Apologies if it still sounds vague)&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 10:12:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-with-filter-customer-customer/m-p/2554999#M72494</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-02T10:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure with filter customer = customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-with-filter-customer-customer/m-p/2555008#M72495</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you it's now clear. Only one thing: any relationship between the the tables? If not, can you create one? What is the cardinality? Is it 1:1?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 10:16:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-with-filter-customer-customer/m-p/2555008#M72495</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-02T10:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure with filter customer = customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-with-filter-customer-customer/m-p/2555013#M72496</link>
      <description>&lt;P&gt;There are 1:many relationships between the tables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 10:21:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-with-filter-customer-customer/m-p/2555013#M72496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-02T10:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure with filter customer = customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-with-filter-customer-customer/m-p/2555021#M72497</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess the machines table is the many?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 10:22:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-with-filter-customer-customer/m-p/2555021#M72497</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-02T10:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure with filter customer = customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-with-filter-customer-customer/m-p/2555025#M72498</link>
      <description>&lt;P&gt;Correct.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 10:24:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-with-filter-customer-customer/m-p/2555025#M72498</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-02T10:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure with filter customer = customer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-with-filter-customer-customer/m-p/2555027#M72499</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Measure1 =
SUMX (
    Machines,
    Machines[Machines] * RELATED ( 'Average machine price'[Average amount] )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Jun 2022 10:25:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-with-filter-customer-customer/m-p/2555027#M72499</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-02T10:25:45Z</dc:date>
    </item>
  </channel>
</rss>

