<?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 by selected rows in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-selected-rows/m-p/3368257#M126705</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="599503" data-lia-user-login="Denise_" class="lia-mention lia-mention-user"&gt;Denise_&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can yu sahre a sample file?&lt;/P&gt;</description>
    <pubDate>Mon, 07 Aug 2023 11:34:20 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-08-07T11:34:20Z</dc:date>
    <item>
      <title>Filter by selected rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-selected-rows/m-p/3367883#M126682</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;&lt;BR /&gt;i have two charts (histograms) about the same fact table. (Fields:&amp;nbsp; Positionnumber, Month, Value). Theres also dimTable for the Positiondata (Key positionnumber)&lt;BR /&gt;The first charts shows the count for this month, and the second chart shows the next month,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CountCurrentMonth = CALCULATE(COUNT('fact'[Positionnumber]), 'fact'[Month] = DATE(YEAR(today()), month(today()), 1), 'fact'[Value] &amp;gt;= 0,'fact'[Value] &amp;lt; 1)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;CountNextMonth = CALCULATE(COUNT('fact'[Positionnumber]), 'fact'[Month] = DATE(YEAR(today()), month(today()) + 1, 1), 'fact'[Value] &amp;gt;= 0,'fact'[Value] &amp;lt; 1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when i select the first bar in the first chart,&amp;nbsp;PowerBi highlights the second chart based on the selected value (0%) of the first chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But what I'm trying to achieve is to get the second chart highlighted by the positionnumber, instead of the value. In other words, I want to see how positions with low % in this month are filled in the next month.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;P.S.&lt;BR /&gt;I want to keep all other filters on the page, like a customer slicer (field from dim positiondata) and i want to avoid cross filtering, because i have a second fact table in my data model.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 08:08:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-selected-rows/m-p/3367883#M126682</guid>
      <dc:creator>Denise_</dc:creator>
      <dc:date>2023-08-07T08:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filter by selected rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-selected-rows/m-p/3367965#M126689</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="599503" data-lia-user-login="Denise_" class="lia-mention lia-mention-user"&gt;Denise_&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I believe the following should be helpful&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=OxYAEKn1Z2c" target="_blank" rel="noopener"&gt;Using cross highlight with order and delivery date in Power BI - YouTube&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 08:55:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-selected-rows/m-p/3367965#M126689</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-08-07T08:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filter by selected rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-selected-rows/m-p/3368170#M126699</link>
      <description>&lt;P&gt;&lt;BR /&gt;In the video he got 2 fields in the fact, which he wants to compare (order date / delivery date). And so he can duplicate his DimTable (dimDate) for his relations. I can't implement this, because I only have 1 field for the relations.&lt;BR /&gt;&lt;BR /&gt;In my case, my fact table looks like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Positionnumber&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;TD&gt;Value (bins 0.2)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;01.08.2023&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;456&lt;/TD&gt;&lt;TD&gt;01.08.2023&lt;/TD&gt;&lt;TD&gt;50%&lt;/TD&gt;&lt;TD&gt;40%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;01.09.2023&lt;/TD&gt;&lt;TD&gt;40%&lt;/TD&gt;&lt;TD&gt;40%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;456&lt;/TD&gt;&lt;TD&gt;01.09.2023&lt;/TD&gt;&lt;TD&gt;10%&lt;/TD&gt;&lt;TD&gt;0%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;When i select the first bar in the histogram for August (0-20%), i wanna see the value of the Positionnr "123" in the second chat (filtered for September).&lt;BR /&gt;&lt;BR /&gt;I tried arround to use the DimPositiondata for that and a measure with crossfilter like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CountCurrentMonthCross = CALCULATE(
    COUNT( 'Positiondata'[Planposition]), 
    CROSSFILTER('Füllgrad'[Planposition], Positiondata[Planposition], Both), 
    'Füllgrad'[Month] = DATE(YEAR(today()), month(today()), 1), 
    'Füllgrad'[Value] &amp;gt;= 0,'Füllgrad'[Value] &amp;lt; 1
) &lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;CountNextMonthCross = CALCULATE(
    COUNT( 'Positiondata'[Planposition]), 
    CROSSFILTER('Füllgrad'[Planposition], Positiondata[Planposition], Both), 
    'Füllgrad'[Month] = DATE(YEAR(today()), month(today()) +1, 1), 
   'Füllgrad'[Value] &amp;gt;= 0,'Füllgrad'[Value] &amp;lt; 1
) &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;But the second chart still gets filtered by the selected value of the x-axis when I select the first bar in the first chart.&lt;BR /&gt;I tried around with ALL(), ALLSELECTED(), REMOVEFILTERS(), etc. but this messes up the whole chart (all bars get the same size, etc.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 10:42:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-selected-rows/m-p/3368170#M126699</guid>
      <dc:creator>Denise_</dc:creator>
      <dc:date>2023-08-07T10:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Filter by selected rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-selected-rows/m-p/3368257#M126705</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="599503" data-lia-user-login="Denise_" class="lia-mention lia-mention-user"&gt;Denise_&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can yu sahre a sample file?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 11:34:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-selected-rows/m-p/3368257#M126705</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-08-07T11:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filter by selected rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-selected-rows/m-p/3368326#M126714</link>
      <description>&lt;P&gt;I uploaded a sample with less data to github&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/anybi/powerbi" target="_self"&gt;https://github.com/anybi/powerbi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 12:23:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-selected-rows/m-p/3368326#M126714</guid>
      <dc:creator>Denise_</dc:creator>
      <dc:date>2023-08-07T12:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Filter by selected rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-selected-rows/m-p/3368705#M126732</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="599503" data-lia-user-login="Denise_" class="lia-mention lia-mention-user"&gt;Denise_&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Do you always have only two months?&lt;/P&gt;
&lt;P&gt;If so then you can rearrange the table as follows. In this case I see no need for dimTables but of course I don't have the full picture to fully judge that.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please refer to attached sample file and let me in case this does not comply with your requirements.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 16:11:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-selected-rows/m-p/3368705#M126732</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-08-07T16:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Filter by selected rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-selected-rows/m-p/3368760#M126735</link>
      <description>&lt;P&gt;Thank you for your efforts.&lt;/P&gt;&lt;P&gt;I don't always have only two months. I just wanted to make a minimal example as I can't share the original report.&lt;/P&gt;&lt;P&gt;I also have a chart for the next 3 months, for example, and I would like to use the filter here as well.&lt;/P&gt;&lt;P&gt;The dimensions are also minimized, I need them for the rest of the report.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 16:25:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-selected-rows/m-p/3368760#M126735</guid>
      <dc:creator>Denise_</dc:creator>
      <dc:date>2023-08-07T16:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filter by selected rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-selected-rows/m-p/3369609#M126776</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="599503" data-lia-user-login="Denise_" class="lia-mention lia-mention-user"&gt;Denise_&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Ok, then you can create a calculated column of the next&amp;nbsp;month's bins as follows&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You may select a month to analyze&amp;nbsp;it along with the next month as follows&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;See attached sample file&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 06:25:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-by-selected-rows/m-p/3369609#M126776</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-08-08T06:25:58Z</dc:date>
    </item>
  </channel>
</rss>

