<?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 Running total for two measures in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-for-two-measures/m-p/2443796#M65522</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a table with two dates "Plan Date" and "Act Date" that I need to compare in one line chart. I have to compare them between reports from different dates ("Report date") . I also have a table with a calendar. I have to show increasing number of rows for particular dates.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The “RT Act Date”&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RT Act Date = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Arkusz1&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Arkusz1&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;Arkusz1[Act Date]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;measure works fine, but I am unable to show data for both reports as two lines on chart. The relation "Plan Date" to "Date" in the Calendar table is not active, so the measure "RT Plan Date" is not working.&amp;nbsp;&amp;nbsp;This is my exemle file:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://urldefense.com/v3/__https:/www.dropbox.com/s/ap9j5qicvc0zph9/RT.pbix?dl=0__;!!MvWE!VVvcPcfofBoSWFzMK8FrULnR5pOIxC11T6vlwnaezODSsXBPGUykcSIF8pu80s-DVzZSSh0$" target="_blank"&gt;https://www.dropbox.com/s/ap9j5qicvc0zph9/RT.pbix?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I will be grateful for any suggestions.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 14:46:39 GMT</pubDate>
    <dc:creator>maart666</dc:creator>
    <dc:date>2022-04-07T14:46:39Z</dc:date>
    <item>
      <title>Running total for two measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-for-two-measures/m-p/2443796#M65522</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a table with two dates "Plan Date" and "Act Date" that I need to compare in one line chart. I have to compare them between reports from different dates ("Report date") . I also have a table with a calendar. I have to show increasing number of rows for particular dates.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The “RT Act Date”&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RT Act Date = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Arkusz1&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Arkusz1&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;Arkusz1[Act Date]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;measure works fine, but I am unable to show data for both reports as two lines on chart. The relation "Plan Date" to "Date" in the Calendar table is not active, so the measure "RT Plan Date" is not working.&amp;nbsp;&amp;nbsp;This is my exemle file:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://urldefense.com/v3/__https:/www.dropbox.com/s/ap9j5qicvc0zph9/RT.pbix?dl=0__;!!MvWE!VVvcPcfofBoSWFzMK8FrULnR5pOIxC11T6vlwnaezODSsXBPGUykcSIF8pu80s-DVzZSSh0$" target="_blank"&gt;https://www.dropbox.com/s/ap9j5qicvc0zph9/RT.pbix?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I will be grateful for any suggestions.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 14:46:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-for-two-measures/m-p/2443796#M65522</guid>
      <dc:creator>maart666</dc:creator>
      <dc:date>2022-04-07T14:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Running total for two measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-for-two-measures/m-p/2448836#M65848</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="270078" data-lia-user-login="maart666" class="lia-mention lia-mention-user"&gt;maart666&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;you can try this measure,&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RT Plan Date Test = 
CALCULATE(
    COUNTROWS(Arkusz1),
   
    FILTER(
        ALLSELECTED(Arkusz1),Arkusz1[Plan Date] &amp;lt;=MAX('Calendar'[Date])
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;if this doesn't help, could you provide the expected outcome (how to calculate it, the math formula)? Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background: white;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;Community Support Team _Tang&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="background: white; box-sizing: border-box; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 08:25:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-for-two-measures/m-p/2448836#M65848</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-04-11T08:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Running total for two measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-for-two-measures/m-p/2449314#M65866</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;It is what I was looking for!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 10:55:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Running-total-for-two-measures/m-p/2449314#M65866</guid>
      <dc:creator>maart666</dc:creator>
      <dc:date>2022-04-11T10:55:47Z</dc:date>
    </item>
  </channel>
</rss>

