<?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: Measure that calculates the count of closed actions in the last three months in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-calculates-the-count-of-closed-actions-in-the-last/m-p/3930766#M152922</link>
    <description>&lt;P&gt;I've managed to create the measures:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last 3 months =&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Actions'&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;'Actions'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Actions'&lt;/SPAN&gt;&lt;SPAN&gt;[Date Closed]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()-&lt;/SPAN&gt;&lt;SPAN&gt;90&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;'Actions'&lt;/SPAN&gt;&lt;SPAN&gt;[Date Closed]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPA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t;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;'Actions'&lt;/SPAN&gt;&lt;SPAN&gt;[Date Closed]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;()))+&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;The results are es expected when used in a card visual. If I used them in a KPI visual with&amp;nbsp;&lt;SPAN&gt;&lt;SPAN&gt;[Last 3 months] at &lt;STRONG&gt;Value&lt;/STRONG&gt;, Month and Year column from the calendar table as &lt;STRONG&gt;Trend Axis&lt;/STRONG&gt;, and&amp;nbsp;3 months before [Last 3 months] at the &lt;STRONG&gt;Target&lt;/STRONG&gt;, all&amp;nbsp;I get is 0, which is not expected.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;BR /&gt;&lt;P&gt;Do you know why?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sun, 19 May 2024 22:44:50 GMT</pubDate>
    <dc:creator>Sonnet</dc:creator>
    <dc:date>2024-05-19T22:44:50Z</dc:date>
    <item>
      <title>Measure that calculates the count of closed actions in the last three months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-calculates-the-count-of-closed-actions-in-the-last/m-p/3930437#M152905</link>
      <description>&lt;P&gt;Hello everyone, I have a fact table, namely the Action Table, which has a Closed date linked to the calendar date via an inactive relationship.&lt;/P&gt;&lt;P&gt;I am seeking to create a measure that computes the count of actions that were closed within the last three months from today’s date.&lt;/P&gt;&lt;P&gt;Subsequently, I want to use this measure to draw a comparison with the count of actions from the preceding three months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;P&gt;The first measure counts the actions closed from 19/05/2024 to 19/02/2024.&lt;/P&gt;&lt;P&gt;Then, I need a second measure to use in a KPI visual as the target measure, to calculate the count of closed actions in three months previously to the three months in the first measure, in our case, from 18/02/2024 to 18/11/2023.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another option would be to calculate the count of closed actions in the last 90 days compared to the count of closed action between 91 and 180 days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the measure for closed actions without any specified dates:&lt;/P&gt;&lt;P&gt;Total Completed = CALCULATE(COUNT('Actions'[Date Closed]), 'Actions'[Date Closed]&amp;lt;&amp;gt;BLANK(), USERELATIONSHIP('Calendar'[Date],'Actions'[Date Closed]))+0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone guide me on how to accomplish this? Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Action Id&lt;/TD&gt;&lt;TD&gt;Date Closed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;20/03/2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;15/06/2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;02/09/2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;23/12/2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;10/02/2024&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;23/04/2024&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;19/05/2024&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 May 2024 18:43:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-calculates-the-count-of-closed-actions-in-the-last/m-p/3930437#M152905</guid>
      <dc:creator>Sonnet</dc:creator>
      <dc:date>2024-05-19T18:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that calculates the count of closed actions in the last three months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-calculates-the-count-of-closed-actions-in-the-last/m-p/3930482#M152908</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="366150" data-lia-user-login="Sonnet" class="lia-mention lia-mention-user"&gt;Sonnet&lt;/a&gt;&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Sun, 19 May 2024 11:40:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-calculates-the-count-of-closed-actions-in-the-last/m-p/3930482#M152908</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-05-19T11:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that calculates the count of closed actions in the last three months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-calculates-the-count-of-closed-actions-in-the-last/m-p/3930766#M152922</link>
      <description>&lt;P&gt;I've managed to create the measures:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last 3 months =&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Actions'&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;'Actions'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Actions'&lt;/SPAN&gt;&lt;SPAN&gt;[Date Closed]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()-&lt;/SPAN&gt;&lt;SPAN&gt;90&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&g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PAN&gt;&lt;SPAN&gt;[Date Closed]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;()-&lt;/SPAN&gt;&lt;SPAN&gt;91&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;'Actions'&lt;/SPAN&gt;&lt;SPAN&gt;[Date Closed]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;()))+&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;The results are es expected when used in a card visual. If I used them in a KPI visual with&amp;nbsp;&lt;SPAN&gt;&lt;SPAN&gt;[Last 3 months] at &lt;STRONG&gt;Value&lt;/STRONG&gt;, Month and Year column from the calendar table as &lt;STRONG&gt;Trend Axis&lt;/STRONG&gt;, and&amp;nbsp;3 months before [Last 3 months] at the &lt;STRONG&gt;Target&lt;/STRONG&gt;, all&amp;nbsp;I get is 0, which is not expected.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;BR /&gt;&lt;P&gt;Do you know why?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 19 May 2024 22:44:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-calculates-the-count-of-closed-actions-in-the-last/m-p/3930766#M152922</guid>
      <dc:creator>Sonnet</dc:creator>
      <dc:date>2024-05-19T22:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Measure that calculates the count of closed actions in the last three months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-calculates-the-count-of-closed-actions-in-the-last/m-p/3931903#M152981</link>
      <description>&lt;P&gt;any help is much appreaciated.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 09:03:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-that-calculates-the-count-of-closed-actions-in-the-last/m-p/3931903#M152981</guid>
      <dc:creator>Sonnet</dc:creator>
      <dc:date>2024-05-20T09:03:17Z</dc:date>
    </item>
  </channel>
</rss>

