<?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: Aggregating multiple variables in DAX measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregating-multiple-variables-in-DAX-measure/m-p/3978906#M154278</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="687252" data-lia-user-login="13havya" class="lia-mention lia-mention-user"&gt;13havya&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on my testing, please &lt;SPAN&gt;try the following methods again:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.Create the simple tables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.Create the new measure to calculate.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cutoff files = 
var last_month = CALCULATE(SUM('Table'[Files]), FILTER('Table', MONTH('Table'[Date]) = MONTH(TODAY()) - 1))
VAR two_months = CALCULATE(SUM('Table'[Files]), FILTER('Table', MONTH('Table'[Date]) &amp;lt; MONTH(TODAY()) - 2))
RETURN
IF(DAY(TODAY()) &amp;lt; 9, last_month + two_months)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;3.Drag the measure into the card visual. The result is shown below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jun 2024 07:16:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-06-07T07:16:41Z</dc:date>
    <item>
      <title>Aggregating multiple variables in DAX measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregating-multiple-variables-in-DAX-measure/m-p/3976426#M154178</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to build a measure that contains a couple of variables, and I need the totals row to be the sum of all values in the visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The logic behind the metric -&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The business records a "cutoff" dataset on the 9th of every month. The cutoff dataset has a record of files opened in the past month (i.e cutoff recorded on 9 May will contain data for files opened in April).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to design the measure such that:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cutoff Files =&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;DAY(TODAY) &amp;lt; 9,&lt;BR /&gt;RETURN CUTOFF (till 2 months ago) + live data from files opened in last month&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will ensure that all data till the previous month gets populated, regardless of whetehr the cutoff point has been reached or not.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 07:59:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregating-multiple-variables-in-DAX-measure/m-p/3976426#M154178</guid>
      <dc:creator>13havya</dc:creator>
      <dc:date>2024-06-06T07:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregating multiple variables in DAX measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregating-multiple-variables-in-DAX-measure/m-p/3978906#M154278</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="687252" data-lia-user-login="13havya" class="lia-mention lia-mention-user"&gt;13havya&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on my testing, please &lt;SPAN&gt;try the following methods again:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.Create the simple tables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.Create the new measure to calculate.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cutoff files = 
var last_month = CALCULATE(SUM('Table'[Files]), FILTER('Table', MONTH('Table'[Date]) = MONTH(TODAY()) - 1))
VAR two_months = CALCULATE(SUM('Table'[Files]), FILTER('Table', MONTH('Table'[Date]) &amp;lt; MONTH(TODAY()) - 2))
RETURN
IF(DAY(TODAY()) &amp;lt; 9, last_month + two_months)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;3.Drag the measure into the card visual. The result is shown below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 07:16:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Aggregating-multiple-variables-in-DAX-measure/m-p/3978906#M154278</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-07T07:16:41Z</dc:date>
    </item>
  </channel>
</rss>

