<?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: MEDIDA SUM teniendo en cuenta fechas in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MEDIDA-SUM-teniendo-en-cuenta-fechas/m-p/3878602#M151421</link>
    <description>&lt;P&gt;Many thanks for your help! but do you know why it doesn't find my table Date (is where I have my columns with the Month Year info)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Apr 2024 09:03:53 GMT</pubDate>
    <dc:creator>ElenaCarciLopez</dc:creator>
    <dc:date>2024-04-30T09:03:53Z</dc:date>
    <item>
      <title>MEDIDA SUM teniendo en cuenta fechas</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MEDIDA-SUM-teniendo-en-cuenta-fechas/m-p/3876337#M151366</link>
      <description>&lt;P&gt;Hola!&lt;/P&gt;&lt;P&gt;Necesito sacar unas medidas que a priori tienen que ser fáciles, pero no lo consuigo &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;Tengo una medida que me calcula el weightd amount por meses (prevision de lo que se cobraría cada mes)&lt;BR /&gt;Ahora necesito una medidas:&lt;BR /&gt;1.- Suma del weighted amount por meses si la fecha (tengo la columna Month Year) es =&amp;gt; al mes de hoy y &amp;lt;2025 (para saber la previsión de ventas desde el mes en curso y para todo el 2024)&lt;BR /&gt;2.- Suma del weighted amount total por meses si la fecha es = 2025&amp;nbsp;(para saber la previsión de ventas para todo el 2025)&lt;BR /&gt;1.- Suma del weighted amount total desde el mes de hoy y para 12 meses&amp;nbsp;(para saber la previsión de ventas desde el mes en curso y los siguientes 12 meses)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Y que se vaya actualizando segun van pasando los meses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Muchas gracias por vuestra ayuda!!!!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 16:41:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MEDIDA-SUM-teniendo-en-cuenta-fechas/m-p/3876337#M151366</guid>
      <dc:creator>ElenaCarciLopez</dc:creator>
      <dc:date>2024-04-29T16:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: MEDIDA SUM teniendo en cuenta fechas</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MEDIDA-SUM-teniendo-en-cuenta-fechas/m-p/3877444#M151395</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="716558" data-lia-user-login="ElenaCarciLopez" class="lia-mention lia-mention-user"&gt;ElenaCarciLopez&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I create a sample table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create measures and try the following DAX expression:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sum of the weighted amount by months if the date is &amp;gt;equal to the month of today and &amp;lt;2025 = 
CALCULATE(
    SUM('Table'[WeightedAmount]),
    FILTER(
        ALL('Table'),
        'Table'[MonthYear] &amp;gt;= EOMONTH(TODAY(), -1) + 1 &amp;amp;&amp;amp; YEAR('Table'[MonthYear]) &amp;lt; 2025
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sum of the total weighted amount by months if the date is 2025 = 
CALCULATE(
    SUM('Table'[WeightedAmount]),
    FILTER(
        ALL('Table'),
        YEAR('Table'[MonthYear]) = 2025
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sum of the total weighted amount from today and for 12 months = 
CALCULATE(
    SUM('Table'[WeightedAmount]),
    FILTER(
        ALL('Table'),
        'Table'[MonthYear] &amp;gt;= EOMONTH(TODAY(), -1) + 1 &amp;amp;&amp;amp; 'Table'[MonthYear] &amp;lt; EOMONTH(TODAY(), 11) + 1
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my preview:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 6.0pt 0cm 0cm 0cm;"&gt;&lt;SPAN&gt;&lt;A title="https://community.powerbi.com/t5/community-blog/how-to-get-your-question-answered-quickly/ba-p/38490" href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C02%7Cv-yohua%40microsoft.com%7Ce1106bfabecb4734a5cc08dc2305bc51%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638423754744679080%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=24%2BceC5sFd3n3%2FhFDYILWFcNjCwVClBD%2BPBsSLVfJGk%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 6.0pt 0cm 0cm 0cm;"&gt;&lt;SPAN&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yongkang Hua&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 02:34:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MEDIDA-SUM-teniendo-en-cuenta-fechas/m-p/3877444#M151395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-30T02:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: MEDIDA SUM teniendo en cuenta fechas</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MEDIDA-SUM-teniendo-en-cuenta-fechas/m-p/3878602#M151421</link>
      <description>&lt;P&gt;Many thanks for your help! but do you know why it doesn't find my table Date (is where I have my columns with the Month Year info)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 09:03:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MEDIDA-SUM-teniendo-en-cuenta-fechas/m-p/3878602#M151421</guid>
      <dc:creator>ElenaCarciLopez</dc:creator>
      <dc:date>2024-04-30T09:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: MEDIDA SUM teniendo en cuenta fechas</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MEDIDA-SUM-teniendo-en-cuenta-fechas/m-p/3894036#M151780</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="716558" data-lia-user-login="ElenaCarciLopez" class="lia-mention lia-mention-user"&gt;ElenaCarciLopez&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry to reply to you so late.&lt;/P&gt;
&lt;P&gt;What I'm providing is my way of thinking, and since I don't have your data, these measures are an example of mine. You may need to modify the measure based on your own data.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yongkang Hua&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 07:32:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MEDIDA-SUM-teniendo-en-cuenta-fechas/m-p/3894036#M151780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-06T07:32:30Z</dc:date>
    </item>
  </channel>
</rss>

