<?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: Creating a table in DAX using a fliter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-table-in-DAX-using-a-fliter/m-p/707874#M971</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="40489" data-lia-user-login="Ian_Stuart_Rupe" class="lia-mention lia-mention-user"&gt;Ian_Stuart_Rupe&lt;/a&gt; sorry read your post again, seems like you are trying to create a table with filtered student, unfortunately you cannot pass slicer value to when creating table using DAX and that is the reason your first expression works and 2nd one doesn't.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So question here is why you need a table?&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2019 17:39:53 GMT</pubDate>
    <dc:creator>parry2k</dc:creator>
    <dc:date>2019-06-05T17:39:53Z</dc:date>
    <item>
      <title>Creating a table in DAX using a fliter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-table-in-DAX-using-a-fliter/m-p/707805#M959</link>
      <description>&lt;P&gt;I am sure there is a way to do this but I am pulling my hair out!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a DAX table expression this works (returns expected number of rows):&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Filtered Fact = FILTER(Fact_Event,Fact_Event[Dim_Student_Key] = 12071)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Whereas this doesn't (does not filter rows at all):&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Filtered Fact = FILTER(Fact_Event,Fact_Event[Dim_Student_Key] = [Selected Student Key])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Selected Student Key] evaluates to 12071 and is an integer.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Jun 2019 15:47:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-table-in-DAX-using-a-fliter/m-p/707805#M959</guid>
      <dc:creator>Ian_Stuart_Rupe</dc:creator>
      <dc:date>2019-06-05T15:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table in DAX using a fliter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-table-in-DAX-using-a-fliter/m-p/707808#M961</link>
      <description>&lt;P&gt;and&amp;nbsp;&lt;SPAN&gt;[Selected Student Key] is a measure&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 15:52:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-table-in-DAX-using-a-fliter/m-p/707808#M961</guid>
      <dc:creator>Ian_Stuart_Rupe</dc:creator>
      <dc:date>2019-06-05T15:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table in DAX using a fliter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-table-in-DAX-using-a-fliter/m-p/707818#M963</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="40489" data-lia-user-login="Ian_Stuart_Rupe" class="lia-mention lia-mention-user"&gt;Ian_Stuart_Rupe&lt;/a&gt; what is the expression of [Selected Student Key] measure&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 16:07:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-table-in-DAX-using-a-fliter/m-p/707818#M963</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-06-05T16:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table in DAX using a fliter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-table-in-DAX-using-a-fliter/m-p/707866#M969</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;&amp;nbsp; here you go:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Selected Student Key = SELECTEDVALUE(Dim_Student[Dim_Student_Key])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Jun 2019 17:34:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-table-in-DAX-using-a-fliter/m-p/707866#M969</guid>
      <dc:creator>Ian_Stuart_Rupe</dc:creator>
      <dc:date>2019-06-05T17:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table in DAX using a fliter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-table-in-DAX-using-a-fliter/m-p/707868#M970</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="40489" data-lia-user-login="Ian_Stuart_Rupe" class="lia-mention lia-mention-user"&gt;Ian_Stuart_Rupe&lt;/a&gt; so your fact doesn't have relationship with Dim_Student?? if yes then why you need to filter, once you filter dim student it will filter fact table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 17:37:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-table-in-DAX-using-a-fliter/m-p/707868#M970</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-06-05T17:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table in DAX using a fliter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-table-in-DAX-using-a-fliter/m-p/707874#M971</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="40489" data-lia-user-login="Ian_Stuart_Rupe" class="lia-mention lia-mention-user"&gt;Ian_Stuart_Rupe&lt;/a&gt; sorry read your post again, seems like you are trying to create a table with filtered student, unfortunately you cannot pass slicer value to when creating table using DAX and that is the reason your first expression works and 2nd one doesn't.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So question here is why you need a table?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 17:39:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-table-in-DAX-using-a-fliter/m-p/707874#M971</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2019-06-05T17:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table in DAX using a fliter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-table-in-DAX-using-a-fliter/m-p/707913#M973</link>
      <description>&lt;P&gt;Thanks again &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;&amp;nbsp;The user wants to be able to fliter Dim_Student from attributes that are in Dim_Course.&amp;nbsp; There is no direct relationship between these two tables but there is Fact_Event in between.&amp;nbsp; One to many relationships from dims to the fact and single filter direction.&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The filters (which they want on the filter pane) should only show those Dim_Course rows for which there are associated Dim_Student events.&amp;nbsp;&amp;nbsp;Make sense?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Creating this filtered fact table was my idea of a step along the journey to create a filtered Dim_Course table that I could use in the filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect there is a better way!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 18:20:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-table-in-DAX-using-a-fliter/m-p/707913#M973</guid>
      <dc:creator>Ian_Stuart_Rupe</dc:creator>
      <dc:date>2019-06-05T18:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a table in DAX using a fliter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-table-in-DAX-using-a-fliter/m-p/708309#M976</link>
      <description>&lt;P&gt;So if I was able to do this in SQL (which I can write :-)) it would look something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;Course_Code,&lt;BR /&gt;Mode_Of_Study&lt;BR /&gt;FROM Dim_Course c&lt;BR /&gt;INNER JOIN Fact_Event e&lt;BR /&gt;ON c.Dim_Course_Key = e.Dim_Course_Key&lt;BR /&gt;WHERE e.Dim_Student_Key = @Selected_Student_Key&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect I need to use crossfiltering or something but I bascically need a dynamic table that I can use as the source for a filter.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 07:46:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-table-in-DAX-using-a-fliter/m-p/708309#M976</guid>
      <dc:creator>Ian_Stuart_Rupe</dc:creator>
      <dc:date>2019-06-06T07:46:54Z</dc:date>
    </item>
  </channel>
</rss>

