<?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 difference from filtered values in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/measure-difference-from-filtered-values/m-p/1847910#M29470</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Ok, I think they are clear enough to help us understand these requirements and data structures.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;According to your description, it seems like you want to show the date range based on the measurement selected in the slicer, right? (the remain time values of selected date)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If that is the case, I'd like to suggest you create an unconnected parameter table with all measurement values and use its field as the source of a slicer.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;After these steps, you can write create a measure formula to extract the selected value 'datetime' part and use on 'visual level filter' of the chart to keeping records of corresponding date values.&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;measure =
VAR currDate =
    MAX ( Table[Date] )
VAR select =
    SELECTEDVALUE ( NEWTable[Messung] )
VAR _date =
    DATEVALUE ( SUBSTITUTE ( selected, "Messung", "" ) )
RETURN
    IF ( currDate &amp;gt;= _date, 1, 0 )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For the chart design, you can create a line chart with 'date' value as axis, sensor/depth as legend, and expression formula on the value field. (since chart not able to use multiple legend fields, you can add a slicer with 'direction' filed to choose control which direction displayed)&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Average of value difference from 1 =
IF (
    AVERAGE ( 'Table'[value] ) &amp;lt;&amp;gt; BLANK (),
    AVERAGE ( 'Table'[value] )
        - CALCULATE ( AVERAGE ( 'Table'[value] ), 'Table'[reference_measurement] = 1 )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 May 2021 06:35:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-05-18T06:35:47Z</dc:date>
    <item>
      <title>measure difference from filtered values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/measure-difference-from-filtered-values/m-p/1836890#M29383</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to visualize an inclinometer chain composed of 20 sensors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I receive the data every hour and I have to visualize a comparison (difference of values) of every measurement with a reference measurement that can be chosen dynamically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every ONE measurement is composed of 40 rows, depending on the depth and the direction A or B.&amp;nbsp;&lt;/P&gt;&lt;P&gt;All 40 rows are to be recognized by the same measurement date and time... This is how a measurement is defined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a first step. I have fixed a reference measurement by adding a column called &lt;EM&gt;reference_measurment&lt;/EM&gt; which is equal to 1 in the rows to be considered for this reference measurement and is then 0 elsewhere.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a quick measure as follows:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Average of value difference from 1 = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR __BASELINE_VALUE =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AVERAGE('Inklinometer (2)'[value]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Inklinometer (2)'[reference_measurement] IN { 1 }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR __MEASURE_VALUE = AVERAGE('Inklinometer (2)'[value]) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IF(NOT ISBLANK(__MEASURE_VALUE), __MEASURE_VALUE - __BASELINE_VALUE)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;On the graph I see that the measure applies only for one measurement which is actually the reference one =&amp;gt; I get 0 everywhere. But it does not work for the other values of the column (other values of other measurements).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I think it might have to do that power BI cannot sort the values in the right order to be able to calculate the requested measure...&amp;nbsp; I don't know how I can sort, or order or give a condition saying where the baselinevalue[depth] = measurevalue[depth]...&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;can someone help me?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Then I need to solve the problem of being able to visualize the measure values on my x-axis and not on the y-axis.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and then I need to figure out how I can choose the reference measurement dynamically...&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I will really appreciate some help! &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you in advance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Yushi&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 May 2021 18:58:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/measure-difference-from-filtered-values/m-p/1836890#M29383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-11T18:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: measure difference from filtered values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/measure-difference-from-filtered-values/m-p/1841687#M29419</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi @Anonymous&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Can you please share some dummy data(keep raw table scheme) and expected results? It should help us clarify your scenario and test to coding formula.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="http://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 01:20:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/measure-difference-from-filtered-values/m-p/1841687#M29419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-14T01:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: measure difference from filtered values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/measure-difference-from-filtered-values/m-p/1846806#M29452</link>
      <description>&lt;P&gt;Hello Xiaoxin Sheng,&lt;/P&gt;&lt;P&gt;First of all, thank you for your concern.&lt;/P&gt;&lt;P&gt;I will try my best to show some data.&lt;/P&gt;&lt;P&gt;As already mentioned, I am working with sensors data. I receive new data every hour.&lt;/P&gt;&lt;P&gt;I am working with a chain consisting of 20 sensors. Every sensor gives me a value in 2 directions A and B. Therefore every ONE measurement consists of 40 rows, that are filtered by their timestamp (date and time), column Messung in the table below. I have represented only 3 measurements with 3 sensors each instead of 20 sensors each as an example (18 rows instead of 120 rows).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="table.JPG" style="width: 627px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/515869i1B1818D671EEB961/image-size/large?v=v2&amp;amp;px=999" role="button" title="table.JPG" alt="table.JPG" /&gt;&lt;/span&gt;&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;&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;&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;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have come to visualize every measurement in every direction A and B(2 separate graphs) depending on their depth. The end result is a curve showing the inclination of a wall.&lt;/P&gt;&lt;P&gt;Now, I need to visualize the displacement of the chain compared to the reference measurement that is marked as &lt;STRONG&gt;1&lt;/STRONG&gt; in the column &lt;STRONG&gt;reference_measurement&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So for example when I select &lt;EM&gt;Messung 5-7-2021 13:00:00&lt;/EM&gt;&amp;nbsp; from my slicer, I want to visualize the difference between&lt;EM&gt; &lt;STRONG&gt;Value&lt;/STRONG&gt; of Messung 5-7-2021 13:00:00 – &lt;STRONG&gt;Value&lt;/STRONG&gt; of the reference measurement which is defined here as the Messung 5-7-2021 12:00:00 PM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;When I select &lt;EM&gt;Messung 5-7-2021 14:00:00&lt;/EM&gt;&amp;nbsp; from my slicer, I want to see the difference between&lt;EM&gt; &lt;STRONG&gt;Value&lt;/STRONG&gt; of Messung 5-7-2021 14:00:00 – &lt;STRONG&gt;Value&lt;/STRONG&gt; of the reference measurement which is defined here as the Messung 5-7-2021 12:00:00 PM &lt;/EM&gt;in the reference_measurement column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created the &lt;STRONG&gt;Measure&lt;/STRONG&gt; as follows:&lt;/P&gt;&lt;P&gt;Average of value difference from 1 =&lt;/P&gt;&lt;P&gt;VAR __BASELINE_VALUE =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AVERAGE('Inklinometer (2)'[value]),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Inklinometer (2)'[reference_measurement] IN { 1 }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;VAR __MEASURE_VALUE = AVERAGE('Inklinometer (2)'[value])&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(NOT ISBLANK(__MEASURE_VALUE), __MEASURE_VALUE - __BASELINE_VALUE)&lt;/P&gt;&lt;P&gt;The first issue I have with the &lt;STRONG&gt;Measure&lt;/STRONG&gt; is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I cannot visualize the &lt;STRONG&gt;Measure&lt;/STRONG&gt; on my x-axis. I need to show the curve in accordance to the depth that should be shown on the y-axis.&lt;/LI&gt;&lt;LI&gt;Second, when I check the values of my &lt;STRONG&gt;Measure&lt;/STRONG&gt; for any measurement, I receive the same values that I have in my table under column &lt;STRONG&gt;&lt;EM&gt;value. &lt;/EM&gt;&lt;/STRONG&gt;Which means the measure was not effective and I do not get any “calculated” values…&lt;/LI&gt;&lt;LI&gt;When I check the “calculated” values of the &lt;STRONG&gt;reference measurement&lt;/STRONG&gt; &lt;EM&gt;Messung 5-7-2021 12:00:00 PM&lt;/EM&gt; then I have 0 for all rows, which means the measure was actually effective but only on this one measurement.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My next step would be to dynamically fix the reference measurement by choosing it from a slicer. Any idea if this would be possible?&lt;/P&gt;&lt;P&gt;I hope this is clear. For any additional clarifications, I am at your disposal.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Yushi&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 15:26:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/measure-difference-from-filtered-values/m-p/1846806#M29452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-17T15:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: measure difference from filtered values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/measure-difference-from-filtered-values/m-p/1847910#M29470</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Ok, I think they are clear enough to help us understand these requirements and data structures.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;According to your description, it seems like you want to show the date range based on the measurement selected in the slicer, right? (the remain time values of selected date)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If that is the case, I'd like to suggest you create an unconnected parameter table with all measurement values and use its field as the source of a slicer.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;After these steps, you can write create a measure formula to extract the selected value 'datetime' part and use on 'visual level filter' of the chart to keeping records of corresponding date values.&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;measure =
VAR currDate =
    MAX ( Table[Date] )
VAR select =
    SELECTEDVALUE ( NEWTable[Messung] )
VAR _date =
    DATEVALUE ( SUBSTITUTE ( selected, "Messung", "" ) )
RETURN
    IF ( currDate &amp;gt;= _date, 1, 0 )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For the chart design, you can create a line chart with 'date' value as axis, sensor/depth as legend, and expression formula on the value field. (since chart not able to use multiple legend fields, you can add a slicer with 'direction' filed to choose control which direction displayed)&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Average of value difference from 1 =
IF (
    AVERAGE ( 'Table'[value] ) &amp;lt;&amp;gt; BLANK (),
    AVERAGE ( 'Table'[value] )
        - CALCULATE ( AVERAGE ( 'Table'[value] ), 'Table'[reference_measurement] = 1 )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 06:35:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/measure-difference-from-filtered-values/m-p/1847910#M29470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-18T06:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: measure difference from filtered values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/measure-difference-from-filtered-values/m-p/1849460#M29476</link>
      <description>&lt;P&gt;Thanks a lot for your reply.&lt;/P&gt;&lt;P&gt;It is the exact same Measure that I sued to calculate the displacement as mentioned in my post above. But it is not working for all the values but only for the rows where column reference_measurement = 1.&lt;/P&gt;&lt;P&gt;I even created a calculated column to be able to control the resulted values of my measure as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="verschiebung not working.jpg" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/516724i794E63533C2B8D0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="verschiebung not working.jpg" alt="verschiebung not working.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can see in the picture, that column Verschiebung is equal to 0 in the rows where reference_measurement = 1 which means the substraction of the DAX formula is actually working for these rows. But looking at the rows where reference_measurement = 0, I get in column Verschiebung the exact same values that I have in column Value which means that the subtraction that I am trying to execute is not effective for the rows where reference_measurement = 0 and this is my challenge. I want this Dax Formula to be effected for all the rows of the table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 19:24:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/measure-difference-from-filtered-values/m-p/1849460#M29476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-18T19:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: measure difference from filtered values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/measure-difference-from-filtered-values/m-p/1850605#M29485</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;HI&amp;nbsp;@Anonymous&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Maybe you can try to use the following calculate column format to replace your expression.&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Calculate column =
CALCULATE (
    AVERAGE ( 'Table'[value] )
        - CALCULATE ( AVERAGE ( 'Table'[value] ), 'Table'[reference_measurement] = 1 ),
    FILTER (
        ALLSELECTED ( 'Table' ),
        'Table'[last_measurement] = EARLIER ( 'Table'[last_measurement] )
            &amp;amp;&amp;amp; 'Table'[sensor] = EARLIER ( 'Table'[sensor] )
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 07:52:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/measure-difference-from-filtered-values/m-p/1850605#M29485</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-19T07:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: measure difference from filtered values</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/measure-difference-from-filtered-values/m-p/1855180#M29521</link>
      <description>&lt;P&gt;Thnaks a lot for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not use exactly your solution. But it did inspire me to create my own.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used filters and eralier to do it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 21:07:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/measure-difference-from-filtered-values/m-p/1855180#M29521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-20T21:07:34Z</dc:date>
    </item>
  </channel>
</rss>

