<?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: Measure for select IN table where in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-select-IN-table-where/m-p/4009109#M157475</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Jayleny, Thank you so much for the quick respond!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem is that page1 is using different tables and filters to compare with page2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That's why when the value comes from page1 to page2 using drill through i can see it in drill through area, but measure&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Selected = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(table1&lt;/SPAN&gt;&lt;SPAN&gt;[ID]&lt;/SPAN&gt;&lt;SPAN&gt;) has nothing on page2. Any suggestions? Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2024 12:53:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-25T12:53:06Z</dc:date>
    <item>
      <title>Measure for select IN table where</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-select-IN-table-where/m-p/4007641#M156999</link>
      <description>&lt;P&gt;Hello, I have two issues with the report:&lt;/P&gt;&lt;P&gt;1. I have report with two pages, where selectedvalueonPage1 is drill trough to Page2, Page 1 and Page 2 have different filters.&lt;/P&gt;&lt;P&gt;And because of that selectedvalueonPage1 is using only for the measure to create count in #2 issue.&lt;/P&gt;&lt;P&gt;I can't get this value even it is displays on the page in the drill trough area.&lt;/P&gt;&lt;P&gt;2. I need to create measure for the following select statement&lt;/P&gt;&lt;P&gt;Select count(*)&amp;nbsp;from table1&lt;BR /&gt;where&amp;nbsp;&amp;nbsp;field1 in (select field1 from table2 where id= selectedvalueonPage1)&lt;/P&gt;&lt;P&gt;Any help / suggestions are greatly appreciate. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 19:20:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-select-IN-table-where/m-p/4007641#M156999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-24T19:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for select IN table where</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-select-IN-table-where/m-p/4007876#M157116</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For your first question, please check the following:&lt;BR /&gt;(1)Ensure that the drill-through filter on Page 2 is correctly set up to receive the value from Page 1.&lt;BR /&gt;(2)Verify that the field used for drill-through on Page 1 is also present and correctly configured on Page 2.&lt;BR /&gt;&lt;BR /&gt;For your second question, h&lt;SPAN&gt;ere's a DAX formula that might help you achieve what you're looking for:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR SelectedID = SELECTEDVALUE(Table2[id])
RETURN
CALCULATE(
    COUNTROWS(Table1),
    FILTER(
        Table1,
        Table1[field1] IN CALCULATETABLE(VALUES(Table2[field1]), Table2[id] = SelectedID)
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 01:01:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-select-IN-table-where/m-p/4007876#M157116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-25T01:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for select IN table where</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-select-IN-table-where/m-p/4009109#M157475</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Jayleny, Thank you so much for the quick respond!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The problem is that page1 is using different tables and filters to compare with page2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That's why when the value comes from page1 to page2 using drill through i can see it in drill through area, but measure&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Selected = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(table1&lt;/SPAN&gt;&lt;SPAN&gt;[ID]&lt;/SPAN&gt;&lt;SPAN&gt;) has nothing on page2. Any suggestions? Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 12:53:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-select-IN-table-where/m-p/4009109#M157475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-25T12:53:06Z</dc:date>
    </item>
  </channel>
</rss>

