<?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: SUMIFS / DAX combined with dynamic dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFS-DAX-combined-with-dynamic-dates/m-p/2004181#M44541</link>
    <description>&lt;P&gt;There is no need for that. You link the table via the Date column, right?&lt;/P&gt;</description>
    <pubDate>Sun, 08 Aug 2021 19:04:26 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2021-08-08T19:04:26Z</dc:date>
    <item>
      <title>SUMIFS / DAX combined with dynamic dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFS-DAX-combined-with-dynamic-dates/m-p/2001973#M44448</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling with converting a (dynamic) SUMIFS formula towards Power BI, formula is summarizing the contract amount of sales opportunities based on multiple (date)-criteria (latest date of each quarter), which is generating the following result:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am able to calculate this in Power BI for one specific date, in the following example being 31/12/2020:&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody an idea how I should write this measure in DAX, so I would be able to show the calculation for each (latest) date of each quarter as of (f.E.) 01/01/2019 up untill .. ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for looking into this !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gerry&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 08:39:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFS-DAX-combined-with-dynamic-dates/m-p/2001973#M44448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-06T08:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: SUMIFS / DAX combined with dynamic dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFS-DAX-combined-with-dynamic-dates/m-p/2002948#M44480</link>
      <description>&lt;P&gt;- Have a Calendar table as part of your data model, including the YearQuarter column&lt;/P&gt;
&lt;P&gt;- use LASTDATE() DAX function to find the last date of the quarter&lt;/P&gt;
&lt;P&gt;- calculate the value for that date.&lt;/P&gt;
&lt;P&gt;- display in the chart.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 18:13:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFS-DAX-combined-with-dynamic-dates/m-p/2002948#M44480</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-08-06T18:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: SUMIFS / DAX combined with dynamic dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFS-DAX-combined-with-dynamic-dates/m-p/2004074#M44534</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your swift reply, for the moment I have following Date table:&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;When I try to convert the yearquarter column from text to date I am not able to.&lt;/P&gt;&lt;P&gt;Any help on the formula for creating a yearquarter column which is convertible towards a date ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gerry&lt;/P&gt;</description>
      <pubDate>Sun, 08 Aug 2021 14:36:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFS-DAX-combined-with-dynamic-dates/m-p/2004074#M44534</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-08T14:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: SUMIFS / DAX combined with dynamic dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFS-DAX-combined-with-dynamic-dates/m-p/2004181#M44541</link>
      <description>&lt;P&gt;There is no need for that. You link the table via the Date column, right?&lt;/P&gt;</description>
      <pubDate>Sun, 08 Aug 2021 19:04:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFS-DAX-combined-with-dynamic-dates/m-p/2004181#M44541</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-08-08T19:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: SUMIFS / DAX combined with dynamic dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFS-DAX-combined-with-dynamic-dates/m-p/2005020#M44554</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not really sure how to do that via the date table &amp;amp; have solved this (inefficiently as following):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1) Creating measures for each date (end of quarter), with following formulas (example shown sales pipeline for 30/06/2020): "&lt;SPAN&gt;&lt;EM&gt;Sales Pipeline: 30/06/2020 = (sumx(filter(Sales_Opportunities,Sales_Opportunities[CreatedOn]&amp;lt;=date(2020,6,30)&amp;amp;&amp;amp;Sales_Opportunities[ClosingDate]&amp;gt;=date(2020,6,30)),[Sales Contract amount in €])+sumx(filter(Sales_Opportunities,Sales_Opportunities[CreatedOn]&amp;lt;=date(2020,6,30)&amp;amp;&amp;amp;Sales_Opportunities[ClosingDate]=0),[Sales Contract amount in €]))/1000&lt;/EM&gt;"&lt;BR /&gt;&lt;BR /&gt;(2) generation following result:&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Despite this being an inefficient approach, I am not able to visualise this into other visuals than tables, as the time dimension is not being used properly.&lt;BR /&gt;&lt;BR /&gt;Anybody an idea how to solve this more efficient (in 1 measure, but having the time dimension seperately ?)&lt;BR /&gt;&lt;BR /&gt;For everyones information, I will try to describe my case more thorougly:&lt;BR /&gt;&lt;BR /&gt;Based on opportunities in our CRM tool, I want to show the sales pipeline (amount in sales phase on a specific date) and I use following checks to calculate this from past dates:&lt;BR /&gt;&lt;BR /&gt;(1) Creation date, which should be before date X&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(2) End date, which should be blank or after date X&lt;BR /&gt;&lt;BR /&gt;For the moment I have following (DIM_Date) table:&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Which is having a relation with the CRM date (Sales_opportunities):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If I try to change the formula, from hard coded dated towards the Date field onder Date table (Dim_Date) I get following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Many thanks for looking into this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gerry&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 07:42:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFS-DAX-combined-with-dynamic-dates/m-p/2005020#M44554</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-09T07:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: SUMIFS / DAX combined with dynamic dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFS-DAX-combined-with-dynamic-dates/m-p/2012071#M44723</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Found the solution using a what-if parameter &amp;amp; putting this into a variable, enabling a dynamic formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gerry&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 06:36:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFS-DAX-combined-with-dynamic-dates/m-p/2012071#M44723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-12T06:36:18Z</dc:date>
    </item>
  </channel>
</rss>

