<?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 Summarize filtering by date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-filtering-by-date/m-p/3423049#M129620</link>
    <description>&lt;P&gt;Hey guys. I'm Brazilian and I need to do a dax to calculate the amount of ID_GERADOC for each ID_LOGIN in the FATO_GERADOC table, in a given period. This period will be selected in a slicer from the DIM_DATA table.&lt;BR /&gt;I've already tried to create a table "Materiais" using&amp;nbsp; Summarize with Filter on the FATO_GERADOC table, filtering by DATA_REGISTRO &amp;lt;= MAX(DIM_DATA[Data]), but it didn't work. Can someone help me?&lt;BR /&gt;&lt;BR /&gt;&lt;A title="Sample PBIX" href="https://drive.google.com/file/d/1BqapkYRB7DUysPvHFQcM67DqJTvMTtyQ/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1BqapkYRB7DUysPvHFQcM67DqJTvMTtyQ/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 10 Sep 2023 14:54:05 GMT</pubDate>
    <dc:creator>LuisLOCapelari</dc:creator>
    <dc:date>2023-09-10T14:54:05Z</dc:date>
    <item>
      <title>Summarize filtering by date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-filtering-by-date/m-p/3423049#M129620</link>
      <description>&lt;P&gt;Hey guys. I'm Brazilian and I need to do a dax to calculate the amount of ID_GERADOC for each ID_LOGIN in the FATO_GERADOC table, in a given period. This period will be selected in a slicer from the DIM_DATA table.&lt;BR /&gt;I've already tried to create a table "Materiais" using&amp;nbsp; Summarize with Filter on the FATO_GERADOC table, filtering by DATA_REGISTRO &amp;lt;= MAX(DIM_DATA[Data]), but it didn't work. Can someone help me?&lt;BR /&gt;&lt;BR /&gt;&lt;A title="Sample PBIX" href="https://drive.google.com/file/d/1BqapkYRB7DUysPvHFQcM67DqJTvMTtyQ/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1BqapkYRB7DUysPvHFQcM67DqJTvMTtyQ/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Sep 2023 14:54:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-filtering-by-date/m-p/3423049#M129620</guid>
      <dc:creator>LuisLOCapelari</dc:creator>
      <dc:date>2023-09-10T14:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize filtering by date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-filtering-by-date/m-p/3423667#M129645</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="510432" data-lia-user-login="LuisLOCapelari" class="lia-mention lia-mention-user"&gt;LuisLOCapelari&lt;/a&gt; , The information you have provided is not making the problem clear to me. Can you please explain with an example. &lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Appreciate your Kudos.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you looking for a Cumulative total then you can try like, with help from date table &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] &amp;lt;=max('Date'[date])))&lt;/P&gt;
&lt;P&gt;Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] &amp;lt;=max(date[Date])))&lt;BR /&gt;&lt;BR /&gt;Cumm Based on Date = CALCULATE([Net], Window(1,ABS,0,REL, ALL('date'[date]),ORDERBY('Date'[date],ASC)))&lt;BR /&gt;&lt;BR /&gt;Cumm Based on Date = CALCULATE([Net], Window(1,ABS,0,REL, ALLSELECTED('date'[date]),ORDERBY('Date'[date],ASC)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Continue to explore Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: &lt;A href="https://youtu.be/nxc_IWl-tTc" target="_blank"&gt;https://youtu.be/nxc_IWl-tTc&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak/power-bi-window-function-3d98a5b0e07f" target="_blank"&gt;https://medium.com/@amitchandak/power-bi-window-function-3d98a5b0e07f&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 06:59:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-filtering-by-date/m-p/3423667#M129645</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-09-11T06:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize filtering by date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-filtering-by-date/m-p/3424917#M129721</link>
      <description>&lt;P&gt;Hello &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;, thanks for responding to me.&lt;BR /&gt;This is a scenario of an educational platform where teachers create lists of exercises.&lt;BR /&gt;The FATO_GERADOC table has information on all lists that a teacher creates.&lt;BR /&gt;I want to take a specific period, selecting the dates from the DIM_DATA table using a slicer, then calculate the number of lists created per teacher. Then I want to take and group this number of lists and have something like: X teachers created Y lists in period P.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2023 11:49:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-filtering-by-date/m-p/3424917#M129721</guid>
      <dc:creator>LuisLOCapelari</dc:creator>
      <dc:date>2023-09-12T11:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize filtering by date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-filtering-by-date/m-p/3427618#M129902</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="510432" data-lia-user-login="LuisLOCapelari" class="lia-mention lia-mention-user"&gt;LuisLOCapelari&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try using the following dax:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
var _select=SELECTEDVALUE('DIM_DATA'[Data])
return
COUNTX(
    FILTER(ALL(FATO_GERADOC),
    'FATO_GERADOC'[ID_LOGIN]=MAX('FATO_GERADOC'[ID_LOGIN])&amp;amp;&amp;amp;'FATO_GERADOC'[DATA_REGISTRO]&amp;lt;=_select),'FATO_GERADOC'[ID_GERADOC])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 05:07:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-filtering-by-date/m-p/3427618#M129902</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-13T05:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize filtering by date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-filtering-by-date/m-p/3428467#M129962</link>
      <description>&lt;P&gt;Hello Anonymous&lt;/a&gt;&amp;nbsp;. This doesn't work. Because there are several date filters, there is no single value to get from SELECTEDVALUES.&lt;BR /&gt;The idea is to be able to filter according to year, quarter and month. And dynamically, for the selected period, generate a table calculating the number of lists generated by each teacher. Then, discover the unique values for the number of lists, and for each number of lists, find out how many teachers fit into this group.&lt;BR /&gt;I will attach images illustrating it.&lt;BR /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2023 11:59:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Summarize-filtering-by-date/m-p/3428467#M129962</guid>
      <dc:creator>LuisLOCapelari</dc:creator>
      <dc:date>2023-09-13T11:59:57Z</dc:date>
    </item>
  </channel>
</rss>

