<?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: Only show rows when value is changed (based on date) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Only-show-rows-when-value-is-changed-based-on-date/m-p/2589671#M74566</link>
    <description>&lt;P&gt;Try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Row Is Visible =
var bdValues = CALCULATETABLE( VALUES( 'data'[WKN]), 'data'[AARDCONT] = "BD", USERELATIONSHIP('Calendar'[Date], 'data'[Till]) )
var odValues = CALCULATETABLE( VALUES('data'[WKN]), 'data'[AARDCONT] = "OD")
return IF( SELECTEDVALUE( 'data'[WKN] ) IN INTERSECT( bdValues, odValues), 1, 0)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 20 Jun 2022 13:07:32 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2022-06-20T13:07:32Z</dc:date>
    <item>
      <title>Only show rows when value is changed (based on date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Only-show-rows-when-value-is-changed-based-on-date/m-p/2589089#M74528</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm fairly new in the community and I'm struggling with this issue for over weeks now. I hope somebody can help me out:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I have a table with 4 columns:&lt;/P&gt;&lt;P&gt;* WKN = my ID&lt;/P&gt;&lt;P&gt;* AARDCONT = the value&lt;/P&gt;&lt;P&gt;* From = start of active value&lt;/P&gt;&lt;P&gt;* Till = stop of active value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to retrieve the ID's who has been changed from 'BD' to 'OD' in a specific month (or with a specific date slicer)&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;I'm looking forward to a possible solution! Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;T&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 09:43:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Only-show-rows-when-value-is-changed-based-on-date/m-p/2589089#M74528</guid>
      <dc:creator>TeisL</dc:creator>
      <dc:date>2022-06-20T09:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Only show rows when value is changed (based on date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Only-show-rows-when-value-is-changed-based-on-date/m-p/2589140#M74531</link>
      <description>&lt;P&gt;Firstly you'll need a Date table which is not connected to your fact table, for use in the slicer. If your main Date table is not connected then you can use that, otherwise you will need to create a new table just for use in the slicer.&lt;/P&gt;&lt;P&gt;When you have added the disconnected date table to a slicer on the page, you can create a measure like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Row Is Visible =
VAR minDate =
    MIN ( 'Date Slicer'[Date] )
VAR maxDate =
    MAX ( 'Date Slicer'[Date] )
VAR result =
    IF (
        (
            SELECTEDVALUE ( 'Table'[AARDCONT] ) = "BD"
                &amp;amp;&amp;amp; SELECTEDVALUE ( 'Table'[Till] ) &amp;gt;= minDate
                &amp;amp;&amp;amp; SELECTEDVALUE ( 'Table'[Till] ) &amp;lt;= maxDate
        )
            || (
                SELECTEDVALUE ( 'Table'[AARDCONT] ) = "OD"
                    &amp;amp;&amp;amp; SELECTEDVALUE ( 'Table'[From] ) &amp;gt;= minDate
                    &amp;amp;&amp;amp; SELECTEDVALUE ( 'Table'[From] ) &amp;lt;= maxDate
            ),
        1,
        0
    )
RETURN
    result&lt;/LI-CODE&gt;&lt;P&gt;and add this measure as a visual filter to your table, to only show when the value is 1&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 09:55:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Only-show-rows-when-value-is-changed-based-on-date/m-p/2589140#M74531</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-06-20T09:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Only show rows when value is changed (based on date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Only-show-rows-when-value-is-changed-based-on-date/m-p/2589659#M74564</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your feedback and coorporation!&lt;/P&gt;&lt;P&gt;Unfortunately, I'm not quiet there...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result is showing all the ID's where an OD started. I only need to see the ID's where the value changed from BD to OD.&lt;BR /&gt;Do you think this is feasible as well?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I added the calender:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if I should change something.&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 12:57:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Only-show-rows-when-value-is-changed-based-on-date/m-p/2589659#M74564</guid>
      <dc:creator>TeisL</dc:creator>
      <dc:date>2022-06-20T12:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Only show rows when value is changed (based on date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Only-show-rows-when-value-is-changed-based-on-date/m-p/2589671#M74566</link>
      <description>&lt;P&gt;Try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Row Is Visible =
var bdValues = CALCULATETABLE( VALUES( 'data'[WKN]), 'data'[AARDCONT] = "BD", USERELATIONSHIP('Calendar'[Date], 'data'[Till]) )
var odValues = CALCULATETABLE( VALUES('data'[WKN]), 'data'[AARDCONT] = "OD")
return IF( SELECTEDVALUE( 'data'[WKN] ) IN INTERSECT( bdValues, odValues), 1, 0)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Jun 2022 13:07:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Only-show-rows-when-value-is-changed-based-on-date/m-p/2589671#M74566</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-06-20T13:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Only show rows when value is changed (based on date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Only-show-rows-when-value-is-changed-based-on-date/m-p/2589729#M74568</link>
      <description>&lt;P&gt;I'm affraid this is not the solution. I'm having no result now:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 13:25:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Only-show-rows-when-value-is-changed-based-on-date/m-p/2589729#M74568</guid>
      <dc:creator>TeisL</dc:creator>
      <dc:date>2022-06-20T13:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Only show rows when value is changed (based on date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Only-show-rows-when-value-is-changed-based-on-date/m-p/2589747#M74569</link>
      <description>&lt;P&gt;Is it possible to share a PBIX ?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 13:29:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Only-show-rows-when-value-is-changed-based-on-date/m-p/2589747#M74569</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-06-20T13:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Only show rows when value is changed (based on date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Only-show-rows-when-value-is-changed-based-on-date/m-p/2589909#M74578</link>
      <description>&lt;P&gt;Needs REMOVEFILTERS&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Row Is Visible = 
var bdValues = CALCULATETABLE( VALUES( 'data'[WKN]), REMOVEFILTERS(data), 'data'[AARDCONT] = "BD", USERELATIONSHIP('Calendar'[Date], 'data'[Till]) )
var odValues = CALCULATETABLE( VALUES('data'[WKN]), REMOVEFILTERS(data), 'data'[AARDCONT] = "OD")
return IF( SELECTEDVALUE( 'data'[WKN] ) IN INTERSECT( bdValues, odValues), 1, 0)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Jun 2022 14:26:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Only-show-rows-when-value-is-changed-based-on-date/m-p/2589909#M74578</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-06-20T14:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Only show rows when value is changed (based on date)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Only-show-rows-when-value-is-changed-based-on-date/m-p/2589988#M74584</link>
      <description>&lt;P&gt;It works better now, but there are still some wrong ID's in there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;ID 3377 switched from BD to OD in 2017, so this one is not relevant anymore. We only want the ID if the value changed to OD within the datefilter.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 14:54:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Only-show-rows-when-value-is-changed-based-on-date/m-p/2589988#M74584</guid>
      <dc:creator>TeisL</dc:creator>
      <dc:date>2022-06-20T14:54:49Z</dc:date>
    </item>
  </channel>
</rss>

