<?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: Calculate Last 10 days with specific condition in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167302#M1069080</link>
    <description>&lt;P&gt;I'm assuming you want the N value to be selectable, if that's the case: could you just use a simple measure to calculate the sum of the amount for the card:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = &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;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Amount]&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;then use a slicer for less than or equal to using the amount column for the N value&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 01 Apr 2023 22:04:04 GMT</pubDate>
    <dc:creator>DOLEARY85</dc:creator>
    <dc:date>2023-04-01T22:04:04Z</dc:date>
    <item>
      <title>Calculate Last 10 days with specific condition</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167281#M1069073</link>
      <description>&lt;P&gt;I have a Sales table like below, I want to create a measure for the last 10 days. Since I don't have data for 01-Apr-2023 so it should consider&amp;nbsp;23-Mar-23 as my 10th day.&lt;BR /&gt;Note that my dates can be changed so I want a dynam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&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 01 Apr 2023 21:07:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167281#M1069073</guid>
      <dc:creator>iamhuz</dc:creator>
      <dc:date>2023-04-01T21:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Last 10 days with specific condition</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167296#M1069077</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could create a ranking that works dynamically and then use it on the filters on this visual in tha table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RANK = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Table' ),'Table'[Date]='Table'[Date]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Table'[Date] ) ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DESC&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; DENSE&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I had 6 dates and set the filter at 4 so you should just need to set yours to 10:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 01 Apr 2023 21:46:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167296#M1069077</guid>
      <dc:creator>DOLEARY85</dc:creator>
      <dc:date>2023-04-01T21:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Last 10 days with specific condition</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167300#M1069079</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/539243" target="_self"&gt;&lt;SPAN class=""&gt;DOLEARY85&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;for a quick response.&lt;BR /&gt;Please note that I'd like to use a card to show the total sales amount which is less then N&lt;BR /&gt;How to achieve that?&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2023 21:55:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167300#M1069079</guid>
      <dc:creator>iamhuz</dc:creator>
      <dc:date>2023-04-01T21:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Last 10 days with specific condition</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167302#M1069080</link>
      <description>&lt;P&gt;I'm assuming you want the N value to be selectable, if that's the case: could you just use a simple measure to calculate the sum of the amount for the card:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = &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;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Amount]&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;then use a slicer for less than or equal to using the amount column for the N value&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 01 Apr 2023 22:04:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167302#M1069080</guid>
      <dc:creator>DOLEARY85</dc:creator>
      <dc:date>2023-04-01T22:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Last 10 days with specific condition</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167305#M1069081</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;DOLEARY85, I'd like to use it within a measure so no need to apply slicer or filter.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2023 22:10:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167305#M1069081</guid>
      <dc:creator>iamhuz</dc:creator>
      <dc:date>2023-04-01T22:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Last 10 days with specific condition</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167307#M1069082</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if you just want a measure then you could use the below i've set the N value to 90, however it's static so no user interaction would be possible. I'm not sure what your end goal is, if the user is to interact with this how will they be selecting the N value?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = &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;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Amount]&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;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Amount]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;90&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 01 Apr 2023 22:17:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167307#M1069082</guid>
      <dc:creator>DOLEARY85</dc:creator>
      <dc:date>2023-04-01T22:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Last 10 days with specific condition</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167310#M1069083</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;DOLEARY85, Basically I'd like to calculate the last 10 days' sales and show them on a card without any slicer or a filter.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2023 22:20:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167310#M1069083</guid>
      <dc:creator>iamhuz</dc:creator>
      <dc:date>2023-04-01T22:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Last 10 days with specific condition</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167313#M1069084</link>
      <description>&lt;P&gt;Ah okay,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you wrap the rank measure in a filter to calculate the amount based on the rank that is less than 10, that should work. try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&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;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Amount]&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;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/S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;&lt;SPAN&gt;10&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 01 Apr 2023 22:26:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167313#M1069084</guid>
      <dc:creator>DOLEARY85</dc:creator>
      <dc:date>2023-04-01T22:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Last 10 days with specific condition</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167455#M1069132</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You may download my PBI file from &lt;A href="https://1drv.ms/u/s!AnsG4LrWCkhUoIhgR2qSJXf3ZX8SjA?e=1CeAvu" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 01:47:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Calculate-Last-10-days-with-specific-condition/m-p/3167455#M1069132</guid>
      <dc:creator>Ashish_Mathur</dc:creator>
      <dc:date>2023-04-02T01:47:53Z</dc:date>
    </item>
  </channel>
</rss>

