<?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: Cummulative measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-measure/m-p/3713670#M144513</link>
    <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please follow these steps:&lt;/P&gt;
&lt;P&gt;1.Regarding the calculation of the time spent with the client, you can create measure and write the following dax expression:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Years of cooperation = YEAR(TODAY()) - MAX('Table'[Date_Became_Client])&lt;/LI-CODE&gt;
&lt;P&gt;Create the measure and calculate the cumulative value:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;cummulate = 
SUMX(FILTER(ALL('Table'),'Table'[Date_Became_Client] &amp;gt;= MAX('Table'[Date_Became_Client])),'Table'[Years of cooperation])&lt;/LI-CODE&gt;
&lt;P&gt;2.Regarding the mismatch between the two dates, I created the Date_Became_Client group based on your screenshot and found that its data type is text, the reason for the mismatch between the fiscal year and the calendar year may be a data type problem, at this time it will show the error as shown in the figure below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;A text string representing a number can be converted to a number using VALUE. Similar to VALUE(MAX('Table'[Date_Became_Client (bins)])), you can refer to the documentation for more information about the value function: &lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fdax%2Fvalue-function-dax&amp;amp;data=05%7C02%7Cv-kaiyuegong%40microsoft.com%7C236aee31d64c4ebc0df108dc32b93cd1%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638441018380174659%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=XGgb2vYPA3GNbQfgWj4XDoXru%2BpYHMNHPY6TofiGJ5M%3D&amp;amp;reserved=0" target="_blank"&gt;VALUE function (DAX) - DAX | Microsoft Learn&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2024 08:59:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-02-21T08:59:59Z</dc:date>
    <item>
      <title>Cummulative measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-measure/m-p/3711649#M144410</link>
      <description>&lt;P&gt;Hello commulative&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a cummulative measure for how long have clients been with us. Any ideas in how I can do these?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second question I have is that our financial year does not match calendar year, so when I tried to do the Date Became Client' in bins it won't match our fianancial year. Any ideas?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much indeed!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 16:04:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-measure/m-p/3711649#M144410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-20T16:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cummulative measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-measure/m-p/3713670#M144513</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please follow these steps:&lt;/P&gt;
&lt;P&gt;1.Regarding the calculation of the time spent with the client, you can create measure and write the following dax expression:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Years of cooperation = YEAR(TODAY()) - MAX('Table'[Date_Became_Client])&lt;/LI-CODE&gt;
&lt;P&gt;Create the measure and calculate the cumulative value:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;cummulate = 
SUMX(FILTER(ALL('Table'),'Table'[Date_Became_Client] &amp;gt;= MAX('Table'[Date_Became_Client])),'Table'[Years of cooperation])&lt;/LI-CODE&gt;
&lt;P&gt;2.Regarding the mismatch between the two dates, I created the Date_Became_Client group based on your screenshot and found that its data type is text, the reason for the mismatch between the fiscal year and the calendar year may be a data type problem, at this time it will show the error as shown in the figure below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;A text string representing a number can be converted to a number using VALUE. Similar to VALUE(MAX('Table'[Date_Became_Client (bins)])), you can refer to the documentation for more information about the value function: &lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fdax%2Fvalue-function-dax&amp;amp;data=05%7C02%7Cv-kaiyuegong%40microsoft.com%7C236aee31d64c4ebc0df108dc32b93cd1%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638441018380174659%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&amp;amp;sdata=XGgb2vYPA3GNbQfgWj4XDoXru%2BpYHMNHPY6TofiGJ5M%3D&amp;amp;reserved=0" target="_blank"&gt;VALUE function (DAX) - DAX | Microsoft Learn&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 08:59:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-measure/m-p/3713670#M144513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-21T08:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cummulative measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-measure/m-p/3716753#M144678</link>
      <description>&lt;P&gt;Many thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me clarify on the second question in terms on the mismatch data. The problem is not that this is text, it was more a screen shot and an example. The issue I have is that our company&amp;nbsp; fiscal year does not equal calendar year. That was my question. Our fiscal year starts on September and we finish on August. That would be&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So my question is how do I relate our fiscal year to date became client, if that make sense?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much indeed!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 09:56:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cummulative-measure/m-p/3716753#M144678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-22T09:56:50Z</dc:date>
    </item>
  </channel>
</rss>

