<?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 based on data from another measure  with condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-data-from-another-measure-with-condition/m-p/2647862#M77958</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; value of position in previous year = 0&amp;nbsp; in this case need calculate difference between previous year and actual year. Indeed this is short version of formula, for checking work it or not&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2022 13:43:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-19T13:43:27Z</dc:date>
    <item>
      <title>Measure based on data from another measure  with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-data-from-another-measure-with-condition/m-p/2647648#M77939</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Could you please help me to find a solution?&amp;nbsp;&amp;nbsp;The task is to calculate the deviations from the previous year by positions, provided that there is a zero value in the previous period. That is, the task is to counting in case if in last period this position value is zero. Data for the past period are calculated using the measure:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Previous Year = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'[summa]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;SAMEPERIODLASTYEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;BR /&gt;Next I'm trying to use this formula:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;vs Previous Year = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'&lt;/SPAN&gt;&lt;SPAN&gt;[Previous Year]&lt;/SPAN&gt;&lt;SPAN&gt;)=&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'[summa]&lt;/SPAN&gt;&lt;SPAN&gt;)-&lt;/SPAN&gt;&lt;SPAN&gt;'Table1'&lt;/SPAN&gt;&lt;SPAN&gt;[Previous Year]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;And I see deviation by position, but I don't see totals and subtotals value.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Jul 2022 12:32:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-data-from-another-measure-with-condition/m-p/2647648#M77939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-19T12:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Measure based on data from another measure  with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-data-from-another-measure-with-condition/m-p/2647842#M77955</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;What is the purpose of the IF statement?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 13:38:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-data-from-another-measure-with-condition/m-p/2647842#M77955</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-19T13:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Measure based on data from another measure  with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-data-from-another-measure-with-condition/m-p/2647862#M77958</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; value of position in previous year = 0&amp;nbsp; in this case need calculate difference between previous year and actual year. Indeed this is short version of formula, for checking work it or not&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 13:43:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-data-from-another-measure-with-condition/m-p/2647862#M77958</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-19T13:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Measure based on data from another measure  with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-data-from-another-measure-with-condition/m-p/2647900#M77960</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;But if the previous year is zero then the difference is just the current year! Also would you please clarify what are you slicing by in your report. Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 13:50:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-data-from-another-measure-with-condition/m-p/2647900#M77960</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-19T13:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Measure based on data from another measure  with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-data-from-another-measure-with-condition/m-p/2647942#M77963</link>
      <description>&lt;P&gt;Indeed I need calculate mix factor,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got a lot of items, some of them were produced in this year, but weren't in previous? and some of them weren' produce this year, but were in previous period. And I need to calculate (Value per position this year - Value per position previos year) in case if or Value per position this year =0 or&amp;nbsp;Value per position previous year =0. This is full task&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 14:06:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-data-from-another-measure-with-condition/m-p/2647942#M77963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-19T14:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Measure based on data from another measure  with condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-data-from-another-measure-with-condition/m-p/2672437#M79740</link>
      <description>&lt;P&gt;Hi，&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share a sample file for further research?&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 09:31:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-on-data-from-another-measure-with-condition/m-p/2672437#M79740</guid>
      <dc:creator>v-easonf-msft</dc:creator>
      <dc:date>2022-08-01T09:31:22Z</dc:date>
    </item>
  </channel>
</rss>

