<?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: Filter one large table in variables to then join later in measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-one-large-table-in-variables-to-then-join-later-in/m-p/3438346#M130507</link>
    <description>&lt;P&gt;This was the route I was trying to get to, shall try it out. Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2023 13:50:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-09-19T13:50:56Z</dc:date>
    <item>
      <title>Filter one large table in variables to then join later in measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-one-large-table-in-variables-to-then-join-later-in/m-p/3438127#M130475</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a large table of data on purchases for insurance policies, added-products etc and wondered if there was a way to create two variables to filter the table and then join them on a specific column all within one measure using variables.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;VAR A = a filtered list of records for policies where the transaction type = "New Policy"&lt;BR /&gt;VAR B = a filtered list of records where the transaction type = "added product"&lt;BR /&gt;VAR C = Inner join of these two variable tables, on their policy number (foreign key for VAR B generated table and primary key for VAR A generated table) so that I can have a new table of added products that were from new policies.&lt;BR /&gt;&lt;BR /&gt;One new policy may have multiple added products. Also, a renewed policy may have purchased added products so I wish to remove these, hence the inner join with the new policy variable.&lt;BR /&gt;&lt;BR /&gt;Apologies if I've not explained very well, but any help is appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 11:00:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-one-large-table-in-variables-to-then-join-later-in/m-p/3438127#M130475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-19T11:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filter one large table in variables to then join later in measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-one-large-table-in-variables-to-then-join-later-in/m-p/3438295#M130503</link>
      <description>&lt;P&gt;You don't need to do an inner join as such, you can use the filtered list of new policies as an additional filter when filtering for added products, e.g.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Added products for new policies =
VAR NewPolicies =
    CALCULATETABLE (
        VALUES ( 'Table'[Policy number] ),
        'Table'[Transaction type] = "new policy"
    )
VAR AddedProducts =
    CALCULATETABLE (
        'Table',
        NewPolicies,
        'Table'[Transaction type] = "added product"
    )
RETURN
    AddedProducts
&lt;/LI-CODE&gt;
&lt;P&gt;Of course, you don't have to return the AddedProducts variable, you could use that in a SUMX or other aggregation.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 13:26:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-one-large-table-in-variables-to-then-join-later-in/m-p/3438295#M130503</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-09-19T13:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Filter one large table in variables to then join later in measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-one-large-table-in-variables-to-then-join-later-in/m-p/3438346#M130507</link>
      <description>&lt;P&gt;This was the route I was trying to get to, shall try it out. Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 13:50:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-one-large-table-in-variables-to-then-join-later-in/m-p/3438346#M130507</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-19T13:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filter one large table in variables to then join later in measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-one-large-table-in-variables-to-then-join-later-in/m-p/3439575#M130590</link>
      <description>&lt;P&gt;This didn't work as you typed, I get the error: "The VALUES function expects a column reference expression or a table reference expression for argument '1". Possibly because my policy numbers are of text format? If so, they have to be text due to some having letters within them e.g. AB123456&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 08:21:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-one-large-table-in-variables-to-then-join-later-in/m-p/3439575#M130590</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-20T08:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Filter one large table in variables to then join later in measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-one-large-table-in-variables-to-then-join-later-in/m-p/3439663#M130599</link>
      <description>&lt;P&gt;It will work with text values, you just need to put the fully qualified column name into the VALUES function.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 09:00:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-one-large-table-in-variables-to-then-join-later-in/m-p/3439663#M130599</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-09-20T09:00:10Z</dc:date>
    </item>
  </channel>
</rss>

