<?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: Manipulate measure and cumulate/show it until specific date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Manipulate-measure-and-cumulate-show-it-until-specific-date/m-p/4073218#M161716</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="783471" data-lia-user-login="DAXDisaster" class="lia-mention lia-mention-user"&gt;DAXDisaster&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your feedback. Please try to create a new calculated table as the third-row parameter of the Matrix visual.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table 2 = ALL('Table'[Title])&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure 4 = 
VAR _start =
    CALCULATE (
        MAXX ( FILTER ( 'Table', [Title] = MAX ( 'Table 2'[Title] ) ), [Creation Date] ),
        ALL ( 'Calendar' )
    )
VAR _end =
    CALCULATE (
        MAXX ( FILTER ( 'Table', [Title] = MAX ( 'Table 2'[Title] ) ), [Close Date] ),
        ALL ( 'Calendar' )
    )
VAR _startYearMonth =
    YEAR ( _start ) * 100
        + MONTH ( _start )
VAR _CloseYearMonth =
    YEAR ( _end ) * 100
        + MONTH ( _end )
VAR _v =
    CALCULATE (
        SUMX (
            FILTER ( ALLSELECTED ( 'Table' ), [Title] = MAX ( 'Table 2'[Title] ) ),
            [Amount]
        ),
        ALL ( 'Calendar' )
    )
RETURN
    IF (
        MAX ( 'Calendar'[Year Month] ) &amp;gt;= _startYearMonth
            &amp;amp;&amp;amp; (
                MAX ( 'Calendar'[Year Month] ) &amp;lt;= _CloseYearMonth
                    || _CloseYearMonth = BLANK ()
            ),
        _v,
        BLANK ()
    )&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure 5
IF (
    ISINSCOPE ( 'Calendar'[Month] ) &amp;amp;&amp;amp; NOT ( ISINSCOPE ( 'Table 2'[Title] ) ),
    SUMX (
        FILTER (
            ALLSELECTED ( 'Table' ),
            YEAR ( [Creation Date] ) * 100
                + MONTH ( [Creation Date] )
                &amp;lt;= MAX ( 'Calendar'[Year Month] )
                &amp;amp;&amp;amp; (
                    YEAR ( [Close Date] ) * 100
                        + MONTH ( [Close Date] )
                        &amp;gt;= MAX ( 'Calendar'[Year Month] )
                        || [Close Date] = BLANK ()
                )
        ),
        [Amount]
    ),
    [Measure 4]
)&lt;/LI-CODE&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Wearsky&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2024 09:14:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-08-01T09:14:08Z</dc:date>
    <item>
      <title>Manipulate measure and cumulate/show it until specific date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Manipulate-measure-and-cumulate-show-it-until-specific-date/m-p/4070773#M161607</link>
      <description>&lt;P&gt;Ciao friends!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to do the following with my data&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;LI-SPOILER&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Title&lt;/TD&gt;&lt;TD&gt;Amount&lt;/TD&gt;&lt;TD&gt;Creation Date&lt;/TD&gt;&lt;TD&gt;Close Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Kawa&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;01.01.2024&lt;/TD&gt;&lt;TD&gt;15.03.2024&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bent&lt;/TD&gt;&lt;TD&gt;150&lt;/TD&gt;&lt;TD&gt;15.02.2024&lt;/TD&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data in a matrix without any measure definition looks like the following:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After creating a measure like&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;LI-CODE lang="markup"&gt;**bleep**. Sum Amount = 
    CALCULATE(
        [SUM Amount],
        FILTER(
           ALLSELECTED('Date'),
            'Date'[Date]&amp;lt;=max('Date'[Date])
            )
    ) &lt;/LI-CODE&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;I got the following behavior:&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;In addition, I would like to show&amp;nbsp;&lt;STRIKE&gt;add up the Amount&lt;/STRIKE&gt; &lt;STRIKE&gt;valu&lt;/STRIKE&gt;e the row (Kawa and Bent) per month and repeat it every month until a close date is set.&lt;/P&gt;&lt;P&gt;In the example above, Kawa should be &lt;STRIKE&gt;totaled&lt;/STRIKE&gt;&amp;nbsp;visible up to March (close date 15.03.24), while Bent should occur permanently in every month (including 2025 and ahead).&lt;/P&gt;&lt;P&gt;Is there any chance to adjust my DAX formula to accomplish that? I asked chatgpt and got the following suggestion:&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;LI-CODE lang="markup"&gt;**bleep** Sum Amount v2: 
VAR MaxDate =
    MAX('Date'[Date])
    RETURN
    CALCULATE(
        [SUM Amount],
        FILTER(
            'Example',
            'Example'[Creation Date] &amp;lt;= MaxDate &amp;amp;&amp;amp; 
            (ISBLANK('Example'[Close Date]) || 'Example'[Close Date] &amp;gt; MaxDate)
        )
        ,
        USERELATIONSHIP('Example'[Close Date], 'Date'[Date])
    )&lt;/LI-CODE&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;Unfortunately, this did not work:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am grateful for any advice&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 14:48:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Manipulate-measure-and-cumulate-show-it-until-specific-date/m-p/4070773#M161607</guid>
      <dc:creator>DAXDisaster</dc:creator>
      <dc:date>2024-07-31T14:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate measure and cumulate/show it until specific date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Manipulate-measure-and-cumulate-show-it-until-specific-date/m-p/4072703#M161684</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="783471" data-lia-user-login="DAXDisaster" class="lia-mention lia-mention-user"&gt;DAXDisaster&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a good day. I made a sample for you.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Calendar = ADDCOLUMNS( CALENDAR(DATE(2024,1,1) , DATE(2025,1,31)) , "Year Month" , YEAR([Date])*100+MONTH([Date]),"Year", YEAR([Date]) ,  "Month" , FORMAT([Date],"MMMM") , "MonthValue",MONTH([Date]) )&lt;/LI-CODE&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;LI-CODE lang="markup"&gt;Measure = var _startYearMonth= YEAR( MIN('Table'[Creation Date]) ) *100 + MONTH( MIN('Table'[Creation Date]))
var _CloseYearMonth = YEAR( MAX('Table'[Close Date]) ) *100 + MONTH( MIN('Table'[Close Date]))

RETURN
IF( MAX('Calendar'[Year Month]) &amp;gt;=  _startYearMonth &amp;amp;&amp;amp; ( MAX('Calendar'[Year Month]) &amp;lt;= _CloseYearMonth || _CloseYearMonth =BLANK()) ,SUM('Table'[Amount]) ,BLANK())&lt;/LI-CODE&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;LI-CODE lang="markup"&gt;Measure 2 = IF(  NOT( ISINSCOPE('Table'[Title]) ) &amp;amp;&amp;amp; ISINSCOPE('Calendar'[Month]) , SUMX( FILTER(ALLSELECTED('Table') , YEAR([Creation Date])*100+ MONTH([Creation Date]) &amp;lt;=  MAX('Calendar'[Year Month]) &amp;amp;&amp;amp; (YEAR([Close Date])*100+ MONTH([Close Date]) &amp;gt;= MAX('Calendar'[Year Month]) || [Close Date]=BLANK()  )   ) , [Amount]) , [Measure])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Wearsky&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 05:22:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Manipulate-measure-and-cumulate-show-it-until-specific-date/m-p/4072703#M161684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-01T05:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate measure and cumulate/show it until specific date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Manipulate-measure-and-cumulate-show-it-until-specific-date/m-p/4073091#M161707</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;thanks for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works so far, but as you pointed out, I have to delete the connection between my fact table (example) and the calendar. Is there any chance to accomplish the behavior with an active connection on create date and an inactive connection for closed date?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need the connection for other use cases &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 08:19:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Manipulate-measure-and-cumulate-show-it-until-specific-date/m-p/4073091#M161707</guid>
      <dc:creator>DAXDisaster</dc:creator>
      <dc:date>2024-08-01T08:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate measure and cumulate/show it until specific date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Manipulate-measure-and-cumulate-show-it-until-specific-date/m-p/4073218#M161716</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="783471" data-lia-user-login="DAXDisaster" class="lia-mention lia-mention-user"&gt;DAXDisaster&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your feedback. Please try to create a new calculated table as the third-row parameter of the Matrix visual.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table 2 = ALL('Table'[Title])&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure 4 = 
VAR _start =
    CALCULATE (
        MAXX ( FILTER ( 'Table', [Title] = MAX ( 'Table 2'[Title] ) ), [Creation Date] ),
        ALL ( 'Calendar' )
    )
VAR _end =
    CALCULATE (
        MAXX ( FILTER ( 'Table', [Title] = MAX ( 'Table 2'[Title] ) ), [Close Date] ),
        ALL ( 'Calendar' )
    )
VAR _startYearMonth =
    YEAR ( _start ) * 100
        + MONTH ( _start )
VAR _CloseYearMonth =
    YEAR ( _end ) * 100
        + MONTH ( _end )
VAR _v =
    CALCULATE (
        SUMX (
            FILTER ( ALLSELECTED ( 'Table' ), [Title] = MAX ( 'Table 2'[Title] ) ),
            [Amount]
        ),
        ALL ( 'Calendar' )
    )
RETURN
    IF (
        MAX ( 'Calendar'[Year Month] ) &amp;gt;= _startYearMonth
            &amp;amp;&amp;amp; (
                MAX ( 'Calendar'[Year Month] ) &amp;lt;= _CloseYearMonth
                    || _CloseYearMonth = BLANK ()
            ),
        _v,
        BLANK ()
    )&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure 5
IF (
    ISINSCOPE ( 'Calendar'[Month] ) &amp;amp;&amp;amp; NOT ( ISINSCOPE ( 'Table 2'[Title] ) ),
    SUMX (
        FILTER (
            ALLSELECTED ( 'Table' ),
            YEAR ( [Creation Date] ) * 100
                + MONTH ( [Creation Date] )
                &amp;lt;= MAX ( 'Calendar'[Year Month] )
                &amp;amp;&amp;amp; (
                    YEAR ( [Close Date] ) * 100
                        + MONTH ( [Close Date] )
                        &amp;gt;= MAX ( 'Calendar'[Year Month] )
                        || [Close Date] = BLANK ()
                )
        ),
        [Amount]
    ),
    [Measure 4]
)&lt;/LI-CODE&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Wearsky&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 09:14:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Manipulate-measure-and-cumulate-show-it-until-specific-date/m-p/4073218#M161716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-01T09:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate measure and cumulate/show it until specific date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Manipulate-measure-and-cumulate-show-it-until-specific-date/m-p/4075254#M161798</link>
      <description>&lt;P&gt;Oh boy,&lt;BR /&gt;that has helped me so much Anonymous&lt;/a&gt;&amp;nbsp;. I'm a bit embarrassed to ask for more help. I'm also trying to implement the following:&lt;BR /&gt;On the lines I need the Created and Closed Date per Title (the last one only if available, like in my example picture visibile in Measure 9)&lt;BR /&gt;In addition, I need a measure that performs a count per title row and totals the values per month (Measure 10).&lt;/P&gt;&lt;P&gt;I have minimally adapted Measure 8 from your example (Measure 4) and hope that this is correct so far. I have also added a third row of data. Thanks again for your help so far.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure 8 = 
VAR _start =
    CALCULATE (
        MAXX ( FILTER ( 'Example 2', [Title] = MAX ( 'Table 2'[Title] ) ), [Creation Date] ),
        ALL ( 'Date' )
    )
VAR _end =
    CALCULATE (
        MAXX ( FILTER ( 'Example 2', [Title] = MAX ( 'Table 2'[Title] ) ), [Close Date] ),
        ALL ( 'Date' )
    )
VAR _startYearMonth =
    YEAR ( _start ) * 100
        + MONTH ( _start )
VAR _CloseYearMonth =
    YEAR ( _end ) * 100
        + MONTH ( _end )
VAR _v =
    CALCULATE (
        MAXX (
            FILTER ( ALLSELECTED ( 'Example 2' ), [Title] = MAX ( 'Table 2'[Title] ) ),
            [Creation Date]
        ),
        ALL ( 'Date' )
    )
RETURN
    IF (
        MAX ( 'Date'[Year-Month Code] ) &amp;gt;= _startYearMonth
            &amp;amp;&amp;amp; (
                MAX ('Date'[Year-Month Code] ) &amp;lt;= _CloseYearMonth
                    || _CloseYearMonth = BLANK ()
            ),
        IF( ( ISINSCOPE ( 'Table 2'[Title] ) )
        ,_v,
        BLANK ()
        )
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New row:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Title&lt;/TD&gt;&lt;TD&gt;Creation Date&lt;/TD&gt;&lt;TD&gt;Close Date&lt;/TD&gt;&lt;TD&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bent&lt;/TD&gt;&lt;TD&gt;15.02.2024&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;150&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Kawa&lt;/TD&gt;&lt;TD&gt;01.01.2024&lt;/TD&gt;&lt;TD&gt;15.03.2024&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Harl&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;28.02.2024&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;29.04.2024&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;200&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 06:55:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Manipulate-measure-and-cumulate-show-it-until-specific-date/m-p/4075254#M161798</guid>
      <dc:creator>DAXDisaster</dc:creator>
      <dc:date>2024-08-02T06:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate measure and cumulate/show it until specific date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Manipulate-measure-and-cumulate-show-it-until-specific-date/m-p/4079229#M161958</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="783471" data-lia-user-login="DAXDisaster" class="lia-mention lia-mention-user"&gt;DAXDisaster&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your feedback. I made a sample for you.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 6 = 
VAR _start =
    MAXX (
        FILTER ( ALLSELECTED ( 'Table' ), [Title] = MAX ( 'Table 2'[Title] ) ),
        [Creation Date]
    )
VAR _end =
    MAXX (
        FILTER ( ALLSELECTED ( 'Table' ), [Title] = MAX ( 'Table 2'[Title] ) ),
        [Close Date]
    )
VAR _startYearMonth =
    YEAR ( _start ) * 100
        + MONTH ( _start )
VAR _CloseYearMonth =
    YEAR ( _end ) * 100
        + MONTH ( _end )
VAR _v =
    CALCULATE (
        SUMX (
            FILTER ( ALLSELECTED ( 'Table' ), [Title] = MAX ( 'Table 2'[Title] ) ),
            [Amount]
        ),
        ALL ( 'Calendar' )
    )
RETURN
    IF (
        ISINSCOPE ( 'Table 2'[Title] ),
        IF (
            MAX ( 'Calendar'[Year Month] ) &amp;gt;= _startYearMonth
                &amp;amp;&amp;amp; (
                    MAX ( 'Calendar'[Year Month] ) &amp;lt;= _CloseYearMonth
                        || _CloseYearMonth = BLANK ()
                ),
            FORMAT ( _start, "dd.mm.yyyy" ),
            BLANK ()
        ),
        BLANK ()
    )
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure 7=
VAR _start =
    MAXX (
        FILTER ( ALLSELECTED ( 'Table' ), [Title] = MAX ( 'Table 2'[Title] ) ),
        [Creation Date]
    )
VAR _end =
    MAXX (
        FILTER ( ALLSELECTED ( 'Table' ), [Title] = MAX ( 'Table 2'[Title] ) ),
        [Close Date]
    )
VAR _startYearMonth =
    YEAR ( _start ) * 100
        + MONTH ( _start )
VAR _CloseYearMonth =
    YEAR ( _end ) * 100
        + MONTH ( _end )
VAR _v =
    CALCULATE (
        SUMX (
            FILTER ( ALLSELECTED ( 'Table' ), [Title] = MAX ( 'Table 2'[Title] ) ),
            [Amount]
        ),
        ALL ( 'Calendar' )
    )
RETURN
    IF (
        ISINSCOPE ( 'Table 2'[Title] ),
        IF (
            MAX ( 'Calendar'[Year Month] ) &amp;gt;= _startYearMonth
                &amp;amp;&amp;amp; (
                    MAX ( 'Calendar'[Year Month] ) &amp;lt;= _CloseYearMonth
                        || _CloseYearMonth = BLANK ()
                ),
            FORMAT ( _end, "dd.mm.yyyy" ),
            BLANK ()
        ),
        BLANK ()
    )
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Measure 8 =
VAR _start =
    MAXX (
        FILTER ( ALLSELECTED ( 'Table' ), [Title] = MAX ( 'Table 2'[Title] ) ),
        [Creation Date]
    )
VAR _end =
    MAXX (
        FILTER ( ALLSELECTED ( 'Table' ), [Title] = MAX ( 'Table 2'[Title] ) ),
        [Close Date]
    )
VAR _startYearMonth =
    YEAR ( _start ) * 100
        + MONTH ( _start )
VAR _CloseYearMonth =
    YEAR ( _end ) * 100
        + MONTH ( _end )
VAR _v =
    CALCULATE (
        SUMX (
            FILTER ( ALLSELECTED ( 'Table' ), [Title] = MAX ( 'Table 2'[Title] ) ),
            [Amount]
        ),
        ALL ( 'Calendar' )
    )
RETURN
    IF (
        ISINSCOPE ( 'Table 2'[Title] ),
        IF (
            MAX ( 'Calendar'[Year Month] ) &amp;gt;= _startYearMonth
                &amp;amp;&amp;amp; (
                    MAX ( 'Calendar'[Year Month] ) &amp;lt;= _CloseYearMonth
                        || _CloseYearMonth = BLANK ()
                ),
            1,
            BLANK ()
        ),
        IF (
            ISINSCOPE ( 'Calendar'[Month] ),
            COUNTROWS (
                FILTER (
                    ALLSELECTED ( 'Table' ),
                    (
                        YEAR ( 'Table'[Creation Date] ) * 100
                            + MONTH ( 'Table'[Creation Date] )
                    )
                        &amp;lt;= MAX ( 'Calendar'[Year Month] )
                        &amp;amp;&amp;amp; (
                            (
                                YEAR ( 'Table'[Close Date] ) * 100
                                    + MONTH ( 'Table'[Close Date] )
                            )
                                &amp;gt;= MAX ( 'Calendar'[Year Month] )
                                || 'Table'[Close Date] = BLANK ()
                        )
                )
            )
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wearsky&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 01:41:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Manipulate-measure-and-cumulate-show-it-until-specific-date/m-p/4079229#M161958</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-05T01:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate measure and cumulate/show it until specific date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Manipulate-measure-and-cumulate-show-it-until-specific-date/m-p/4080838#M161994</link>
      <description>&lt;P&gt;Thanks again Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I really appreciate your help.&lt;/P&gt;&lt;P&gt;My usecase probably looks very weird from an outside perspective. Nevertheless, an additional question: is it possible to have a time filter (slicer) on the page (the active connection from the table (Example) to the Date dimension (via the Create Date)).&lt;BR /&gt;Currently, a filter operation would cause the value of the measure to disappear, but the row with the name would remain. My goal is that, for example, when filtering from February onwards, only the values from February onwards are visible (in my example, Kawa (start date: 01.01.2024) should not displayed).&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 09:54:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Manipulate-measure-and-cumulate-show-it-until-specific-date/m-p/4080838#M161994</guid>
      <dc:creator>DAXDisaster</dc:creator>
      <dc:date>2024-08-05T09:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate measure and cumulate/show it until specific date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Manipulate-measure-and-cumulate-show-it-until-specific-date/m-p/4115058#M163333</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="783471" data-lia-user-login="DAXDisaster" class="lia-mention lia-mention-user"&gt;DAXDisaster&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the delay reply.&lt;/P&gt;
&lt;P&gt;This looks like a new question so I suggest you post a new thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wearsky&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 06:58:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Manipulate-measure-and-cumulate-show-it-until-specific-date/m-p/4115058#M163333</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-23T06:58:13Z</dc:date>
    </item>
  </channel>
</rss>

