<?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 Can i use a measure to get the previous dates results? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-i-use-a-measure-to-get-the-previous-dates-results/m-p/2903489#M94639</link>
    <description>&lt;P&gt;I am trying to display the percentage change between todays data and yesterdays, i have tried to create a measure that will provide the prevous days data, the measure is also filtering for values less than 30:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Previous_Day = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Visit_Rate_History'&lt;/SPAN&gt;&lt;SPAN&gt;[LC/O]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Visit_Rate_History'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Visit_Rate_History'&lt;/SPAN&gt;&lt;SPAN&gt;[Days Since Last_x002]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;&lt;SPAN&gt;) = &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;() - &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am unsure why this doesnt work, any tips?&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;</description>
    <pubDate>Mon, 14 Nov 2022 11:10:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-14T11:10:40Z</dc:date>
    <item>
      <title>Can i use a measure to get the previous dates results?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-i-use-a-measure-to-get-the-previous-dates-results/m-p/2903489#M94639</link>
      <description>&lt;P&gt;I am trying to display the percentage change between todays data and yesterdays, i have tried to create a measure that will provide the prevous days data, the measure is also filtering for values less than 30:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Previous_Day = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Visit_Rate_History'&lt;/SPAN&gt;&lt;SPAN&gt;[LC/O]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Visit_Rate_History'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Visit_Rate_History'&lt;/SPAN&gt;&lt;SPAN&gt;[Days Since Last_x002]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt; &lt;/SPAN&gt;&lt;SPAN&gt;30&lt;/SPAN&gt;&lt;SPAN&gt;) = &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;() - &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am unsure why this doesnt work, any tips?&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;</description>
      <pubDate>Mon, 14 Nov 2022 11:10:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-i-use-a-measure-to-get-the-previous-dates-results/m-p/2903489#M94639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-14T11:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use a measure to get the previous dates results?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-i-use-a-measure-to-get-the-previous-dates-results/m-p/2905108#M94763</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , You can try measures like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today = CALCULATE([Net], FILTER('Date','Date'[Date] = Today() ) )&lt;BR /&gt;Yesterday = CALCULATE([Net], FILTER('Date','Date'[Date] = Today()-1 ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://medium.com/chandakamit/cheat-sheet-power-bi-time-intelligence-formulas-using-today-654f26e27304" target="_blank"&gt;https://medium.com/chandakamit/cheat-sheet-power-bi-time-intelligence-formulas-using-today-654f26e27304&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Day Intelligence - Last day, last non continous day &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c3243d1f9" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c3243d1f9&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 02:24:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-i-use-a-measure-to-get-the-previous-dates-results/m-p/2905108#M94763</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-11-15T02:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use a measure to get the previous dates results?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-i-use-a-measure-to-get-the-previous-dates-results/m-p/2905877#M94808</link>
      <description>&lt;P&gt;Hi Amitchandak, thank you for this!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also need it to filter the results to only count values under 30? is that possible with that formula?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 08:56:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-i-use-a-measure-to-get-the-previous-dates-results/m-p/2905877#M94808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-15T08:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use a measure to get the previous dates results?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-i-use-a-measure-to-get-the-previous-dates-results/m-p/2918268#M95625</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above formula dynamically displays the current day and yesterday's values. If you need to filter the results, you can create a calculated column to calculate the percentages for both days, and then place the calculated column in the filter area for direct filtering.Like the following shows, I filter data under 50%:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Related pbix file you can also refer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Community Support Team&amp;nbsp;&lt;STRONG&gt;Selina&amp;nbsp;zhu&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 09:35:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-i-use-a-measure-to-get-the-previous-dates-results/m-p/2918268#M95625</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-21T09:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use a measure to get the previous dates results?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-i-use-a-measure-to-get-the-previous-dates-results/m-p/2918300#M95628</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for this!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to only show the percentage change, would i just need to create a measure that divided today by yesterday and then the Multiply by 100?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 09:43:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-i-use-a-measure-to-get-the-previous-dates-results/m-p/2918300#M95628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-21T09:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use a measure to get the previous dates results?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-i-use-a-measure-to-get-the-previous-dates-results/m-p/2918312#M95629</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In power bi, there are more convenient options to help you transform the values directly into percentage form. As shown in the figure,in "column tools".&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Community Support Team&amp;nbsp;&lt;STRONG&gt;Selina&amp;nbsp;zhu&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 09:47:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-i-use-a-measure-to-get-the-previous-dates-results/m-p/2918312#M95629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-21T09:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use a measure to get the previous dates results?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-i-use-a-measure-to-get-the-previous-dates-results/m-p/2918945#M95677</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for any confusion caused, i need to only show the difference between todays and yesterdays percentage, so for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Today: 40%&lt;/P&gt;&lt;P&gt;Yesterday: 37%&lt;/P&gt;&lt;P&gt;Percentage Change: +3%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just need to display the percentage Change on a card.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 14:17:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-i-use-a-measure-to-get-the-previous-dates-results/m-p/2918945#M95677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-21T14:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can i use a measure to get the previous dates results?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-i-use-a-measure-to-get-the-previous-dates-results/m-p/2923541#M95932</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Just create a calculated column and subtract yesterday's value from today's value. Please refer to my pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Community Support Team&amp;nbsp;&lt;STRONG&gt;Selina&amp;nbsp;zhu&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 07:11:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-i-use-a-measure-to-get-the-previous-dates-results/m-p/2923541#M95932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-23T07:11:58Z</dc:date>
    </item>
  </channel>
</rss>

