<?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: Dax for calculating the unutilized Intents according to the year month and week-wise. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-calculating-the-unutilized-Intents-according-to-the-year/m-p/2283054#M55899</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="319727" data-lia-user-login="mannyjha7860" class="lia-mention lia-mention-user"&gt;mannyjha7860&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the following methods.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;unutilized intents month = 
CALCULATE (
    19 - SUM ( 'Table'[intent utilized] ),
    FILTER ( 'Table', [date].[Month] = EARLIER ( 'Table'[date].[Month] ) )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;weeknum = WEEKNUM([date],2)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;unutilized intents week = 
CALCULATE (
    19 - SUM ( 'Table'[intent utilized] ),
    FILTER ( 'Table', [weeknum] = EARLIER ( 'Table'[weeknum] ) )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expected?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Charlotte Zhang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jan 2022 05:41:56 GMT</pubDate>
    <dc:creator>v-zhangti</dc:creator>
    <dc:date>2022-01-14T05:41:56Z</dc:date>
    <item>
      <title>Dax for calculating the unutilized Intents according to the year month and week-wise.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-calculating-the-unutilized-Intents-according-to-the-year/m-p/2274707#M55475</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;STRONG&gt;I need a Dax for calculating the unutilized Intents according to the year month and week-wise.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;so if total intent is 19 and on the month of October if total intent used is 7 then I should get unutilized 12 intents&amp;nbsp;&lt;STRONG&gt;(&lt;/STRONG&gt;19 intent count-7 used intent =12 unutilized intent&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;BR /&gt;below is the example table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 06:51:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-calculating-the-unutilized-Intents-according-to-the-year/m-p/2274707#M55475</guid>
      <dc:creator>mannyjha7860</dc:creator>
      <dc:date>2022-01-10T06:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dax for calculating the unutilized Intents according to the year month and week-wise.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-calculating-the-unutilized-Intents-according-to-the-year/m-p/2274749#M55476</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="319727" data-lia-user-login="mannyjha7860" class="lia-mention lia-mention-user"&gt;mannyjha7860&lt;/a&gt; , Create a new column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;new column = &lt;BR /&gt;var _month = eomonth([Date],0) &lt;BR /&gt;return &lt;BR /&gt;19 - sumx(filter(Table, eomonth([Date],0) =_month) ,[intent untlized])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or a new measure like&lt;/P&gt;
&lt;P&gt;new measure =&lt;BR /&gt;var _month = eomonth(max(Table[Date]),0)&lt;BR /&gt;return&lt;BR /&gt;19 - sumx(filter(allselected(Table), eomonth(Table[Date],0) =_month) ,[intent untlized])&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 07:03:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-calculating-the-unutilized-Intents-according-to-the-year/m-p/2274749#M55476</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-01-10T07:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dax for calculating the unutilized Intents according to the year month and week-wise.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-calculating-the-unutilized-Intents-according-to-the-year/m-p/2283054#M55899</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="319727" data-lia-user-login="mannyjha7860" class="lia-mention lia-mention-user"&gt;mannyjha7860&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the following methods.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;unutilized intents month = 
CALCULATE (
    19 - SUM ( 'Table'[intent utilized] ),
    FILTER ( 'Table', [date].[Month] = EARLIER ( 'Table'[date].[Month] ) )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;weeknum = WEEKNUM([date],2)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;unutilized intents week = 
CALCULATE (
    19 - SUM ( 'Table'[intent utilized] ),
    FILTER ( 'Table', [weeknum] = EARLIER ( 'Table'[weeknum] ) )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expected?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Charlotte Zhang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jan 2022 05:41:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-for-calculating-the-unutilized-Intents-according-to-the-year/m-p/2283054#M55899</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2022-01-14T05:41:56Z</dc:date>
    </item>
  </channel>
</rss>

