<?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 Tally for my qtr totals in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tally-for-my-qtr-totals/m-p/3147812#M112680</link>
    <description>&lt;P&gt;Hi Team ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have hit a wall and I need some help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a measure that captures my quarterly totals but some are aggregated and some are not and are just based on the last entered value for that month. The aggregation is fine but when I don't know how to get the last value to show in the qtr total as I have displayed below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a date dimension table connected to the sales table in my model.&lt;/P&gt;&lt;P&gt;&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;any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Mar 2023 16:49:01 GMT</pubDate>
    <dc:creator>PBIX_COACH</dc:creator>
    <dc:date>2023-03-22T16:49:01Z</dc:date>
    <item>
      <title>Tally for my qtr totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tally-for-my-qtr-totals/m-p/3147812#M112680</link>
      <description>&lt;P&gt;Hi Team ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have hit a wall and I need some help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a measure that captures my quarterly totals but some are aggregated and some are not and are just based on the last entered value for that month. The aggregation is fine but when I don't know how to get the last value to show in the qtr total as I have displayed below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a date dimension table connected to the sales table in my model.&lt;/P&gt;&lt;P&gt;&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;any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 16:49:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tally-for-my-qtr-totals/m-p/3147812#M112680</guid>
      <dc:creator>PBIX_COACH</dc:creator>
      <dc:date>2023-03-22T16:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Tally for my qtr totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tally-for-my-qtr-totals/m-p/3148829#M112743</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;I hope the below can provide some ideas on how to create a solution for your&amp;nbsp; datamodel.&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;&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;Revenue: = 
SWITCH (
    TRUE (),
    ISINSCOPE ( 'Calendar'[Month number] ), SUM ( Data[Revenue] ),
    ISINSCOPE ( 'Calendar'[Year-Q] ),
        VAR _yearquarter =
            MAX ( 'Calendar'[Year-Q] )
        VAR _quartertable =
            FILTER ( ALL ( 'Calendar' ), 'Calendar'[Year-Q] = _yearquarter )
        VAR _lastnonblankmonth =
            MAXX (
                FILTER (
                    ADDCOLUMNS ( _quartertable, "@rev", CALCULATE ( SUM ( Data[Revenue] ) ) ),
                    [@rev] &amp;lt;&amp;gt; BLANK ()
                ),
                'Calendar'[Month number]
            )
        RETURN
            CALCULATE (
                SUM ( Data[Revenue] ),
                'Calendar'[Year-Q] = _yearquarter,
                'Calendar'[Month number] = _lastnonblankmonth
            )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Customoer count: = 
SWITCH (
    TRUE (),
    ISINSCOPE ( 'Calendar'[Month number] ), DISTINCTCOUNT(Data[Customer]),
    ISINSCOPE ( 'Calendar'[Year-Q] ),
        VAR _yearquarter =
            MAX ( 'Calendar'[Year-Q] )
        VAR _quartertable =
            FILTER ( ALL ( 'Calendar' ), 'Calendar'[Year-Q] = _yearquarter )
        VAR _lastnonblankmonth =
            MAXX (
                FILTER (
                    ADDCOLUMNS ( _quartertable, "@count", CALCULATE ( DISTINCTCOUNT(Data[Customer]) ) ),
                    [@count] &amp;lt;&amp;gt; BLANK ()
                ),
                'Calendar'[Month number]
            )
        RETURN
            CALCULATE (
                DISTINCTCOUNT(Data[Customer]),
                'Calendar'[Year-Q] = _yearquarter,
                'Calendar'[Month number] = _lastnonblankmonth
            )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales size: = 
SUM( Data[Sales size] )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Mar 2023 04:38:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tally-for-my-qtr-totals/m-p/3148829#M112743</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-03-23T04:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Tally for my qtr totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tally-for-my-qtr-totals/m-p/3150793#M112844</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp; to the rescue again you nailed it. thanks so much.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 18:15:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tally-for-my-qtr-totals/m-p/3150793#M112844</guid>
      <dc:creator>PBIX_COACH</dc:creator>
      <dc:date>2023-03-23T18:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: Tally for my qtr totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tally-for-my-qtr-totals/m-p/3164019#M113716</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;quick question. I noticed in my Matrix visual that when I drill up to the quarter level the values do not show. For the value I am also using a switch function for the values See the below example. I need to be able to drill up and show the data at the quarter level.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 02:29:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tally-for-my-qtr-totals/m-p/3164019#M113716</guid>
      <dc:creator>PBIX_COACH</dc:creator>
      <dc:date>2023-03-31T02:29:52Z</dc:date>
    </item>
  </channel>
</rss>

