<?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: calculating average of two numbers within a measure, if the number appears unreasonable. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculating-average-of-two-numbers-within-a-measure-if-the/m-p/1791762#M37764</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250262" data-lia-user-login="musafasih" class="lia-mention lia-mention-user"&gt;musafasih&lt;/a&gt; , example with time intelligence &lt;/P&gt;
&lt;P&gt;Next and Previous = (CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH))) + CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],1,MONTH))))/2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI — Month on Month with or Without Time Intelligence &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=6LUBbvcxtKA" target="_blank"&gt;https://www.youtube.com/watch?v=6LUBbvcxtKA&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;radacad&lt;/A&gt; &lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;sqlbi&lt;/A&gt; &lt;A href="https://www.youtube.com/playlist?list=PLPaNVDMhUXGYLz-w8ERQOo3KYARs7GgG-" target="_blank"&gt;My Video Series&lt;/A&gt; Appreciate your Kudos. &lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Apr 2021 05:54:27 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-04-19T05:54:27Z</dc:date>
    <item>
      <title>calculating average of two numbers within a measure, if the number appears unreasonable.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculating-average-of-two-numbers-within-a-measure-if-the/m-p/1791700#M37763</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure which calculates the odometer readings of each vehicle. I use it with the month columns from my date table to see the odometer reading for each month. The issue is that because staff often type inaccurate odometer readings, some of the data does not make sense. For example, odometer readings for July in one instance is 40,000, then for August is 100,000 and then for September is it 45,000. So I clearly know that for August the data is inaccurate. How can I write a measure which takes the average of the months with 'normal' data and uses it in the month where data is unreasonable (so in the above eg, I would want to see 42500 for August ((40,000 + 45000)/2)).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 05:02:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculating-average-of-two-numbers-within-a-measure-if-the/m-p/1791700#M37763</guid>
      <dc:creator>musafasih</dc:creator>
      <dc:date>2021-04-19T05:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: calculating average of two numbers within a measure, if the number appears unreasonable.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculating-average-of-two-numbers-within-a-measure-if-the/m-p/1791762#M37764</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250262" data-lia-user-login="musafasih" class="lia-mention lia-mention-user"&gt;musafasih&lt;/a&gt; , example with time intelligence &lt;/P&gt;
&lt;P&gt;Next and Previous = (CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH))) + CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],1,MONTH))))/2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI — Month on Month with or Without Time Intelligence &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=6LUBbvcxtKA" target="_blank"&gt;https://www.youtube.com/watch?v=6LUBbvcxtKA&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;radacad&lt;/A&gt; &lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;sqlbi&lt;/A&gt; &lt;A href="https://www.youtube.com/playlist?list=PLPaNVDMhUXGYLz-w8ERQOo3KYARs7GgG-" target="_blank"&gt;My Video Series&lt;/A&gt; Appreciate your Kudos. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 05:54:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculating-average-of-two-numbers-within-a-measure-if-the/m-p/1791762#M37764</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-04-19T05:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: calculating average of two numbers within a measure, if the number appears unreasonable.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculating-average-of-two-numbers-within-a-measure-if-the/m-p/1791798#M37766</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250262" data-lia-user-login="musafasih" class="lia-mention lia-mention-user"&gt;musafasih&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check the below picture and the sample pbix file's link, whether it is what you are looking for.&lt;/P&gt;&lt;P&gt;All measures are in the sample pbix file, and the steps are numbered in front of each measure.&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;&lt;A href="https://www.dropbox.com/s/br3yexur4r5xvkk/musafasihv2.pbix?dl=0" target="_self"&gt;https://www.dropbox.com/s/br3yexur4r5xvkk/musafasihv2.pbix?dl=0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Hi, My name is Jihwan Kim. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up. &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;STRONG&gt;Linkedin: &lt;A href="https://www.linkedin.com/in/jihwankim1975/" target="_blank"&gt;https://www.linkedin.com/in/jihwankim1975/&lt;/A&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 06:12:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/calculating-average-of-two-numbers-within-a-measure-if-the/m-p/1791798#M37766</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-04-19T06:12:25Z</dc:date>
    </item>
  </channel>
</rss>

