<?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 DAX measure for calculating SUM of carry forward tickets at the end of week. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-calculating-SUM-of-carry-forward-tickets-at-the/m-p/3074729#M106870</link>
    <description>&lt;P&gt;I want to calculate the sum of 'carry forward tickets' but only for the EndOfWeek date. We are using it in a bar graph to show the 'carry forward tickets' at the end of week.&lt;/P&gt;&lt;P&gt;I did something like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CarryForwardTicketsWeekEnd&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(carry_forward, carry_forward[&lt;/SPAN&gt;&lt;SPAN class=""&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; dim_date[&lt;/SPAN&gt;&lt;SPAN class=""&gt;End&lt;/SPAN&gt; &lt;SPAN class=""&gt;of&lt;/SPAN&gt;&lt;SPAN&gt; Week &lt;/SPAN&gt;&lt;SPAN class=""&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;]),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; dim_date[&lt;/SPAN&gt;&lt;SPAN class=""&gt;End&lt;/SPAN&gt; &lt;SPAN class=""&gt;of&lt;/SPAN&gt;&lt;SPAN&gt; Week &lt;/SPAN&gt;&lt;SPAN class=""&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "Carry Forward Tickets", &lt;/SPAN&gt;&lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(carry_forward[carry_forward_tickets])&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This does not work as DAX measure is not recognizing the&amp;nbsp; dim_date[&lt;SPAN class=""&gt;End&lt;/SPAN&gt; &lt;SPAN class=""&gt;of&lt;/SPAN&gt; Week &lt;SPAN class=""&gt;Date&lt;/SPAN&gt;] for filtering.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have two tables dim_date which is Date table and carry_forward table which has 2 columns: 1) calendar_date, 2) carry_forward_tickets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I thought of creating "End of Week" column in the carry_forward table itself but in the bar graph we are using dim_date[dates] on X axis.&lt;BR /&gt;They are connected properly with dim_date on one side and carry_forward table on many side with single filter.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2023 14:12:50 GMT</pubDate>
    <dc:creator>dhirajd</dc:creator>
    <dc:date>2023-02-10T14:12:50Z</dc:date>
    <item>
      <title>DAX measure for calculating SUM of carry forward tickets at the end of week.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-calculating-SUM-of-carry-forward-tickets-at-the/m-p/3074729#M106870</link>
      <description>&lt;P&gt;I want to calculate the sum of 'carry forward tickets' but only for the EndOfWeek date. We are using it in a bar graph to show the 'carry forward tickets' at the end of week.&lt;/P&gt;&lt;P&gt;I did something like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CarryForwardTicketsWeekEnd&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(carry_forward, carry_forward[&lt;/SPAN&gt;&lt;SPAN class=""&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; dim_date[&lt;/SPAN&gt;&lt;SPAN class=""&gt;End&lt;/SPAN&gt; &lt;SPAN class=""&gt;of&lt;/SPAN&gt;&lt;SPAN&gt; Week &lt;/SPAN&gt;&lt;SPAN class=""&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;]),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; dim_date[&lt;/SPAN&gt;&lt;SPAN class=""&gt;End&lt;/SPAN&gt; &lt;SPAN class=""&gt;of&lt;/SPAN&gt;&lt;SPAN&gt; Week &lt;/SPAN&gt;&lt;SPAN class=""&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "Carry Forward Tickets", &lt;/SPAN&gt;&lt;SPAN class=""&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(carry_forward[carry_forward_tickets])&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This does not work as DAX measure is not recognizing the&amp;nbsp; dim_date[&lt;SPAN class=""&gt;End&lt;/SPAN&gt; &lt;SPAN class=""&gt;of&lt;/SPAN&gt; Week &lt;SPAN class=""&gt;Date&lt;/SPAN&gt;] for filtering.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have two tables dim_date which is Date table and carry_forward table which has 2 columns: 1) calendar_date, 2) carry_forward_tickets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I thought of creating "End of Week" column in the carry_forward table itself but in the bar graph we are using dim_date[dates] on X axis.&lt;BR /&gt;They are connected properly with dim_date on one side and carry_forward table on many side with single filter.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 14:12:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-calculating-SUM-of-carry-forward-tickets-at-the/m-p/3074729#M106870</guid>
      <dc:creator>dhirajd</dc:creator>
      <dc:date>2023-02-10T14:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: DAX measure for calculating SUM of carry forward tickets at the end of week.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-calculating-SUM-of-carry-forward-tickets-at-the/m-p/3075015#M106890</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Carry Forward Tickets Weekend =
VAR WeekEnd =
    MAX ( 'dim_date'[End of week] )
RETURN
    CALCULATE (
        SUM ( carry_forward[carry_forward_tickets] ),
        REMOVEFILTERS ( 'dim_date' ),
        'dim_date'[End of week] = WeekEnd
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 Feb 2023 16:09:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-measure-for-calculating-SUM-of-carry-forward-tickets-at-the/m-p/3075015#M106890</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-02-10T16:09:52Z</dc:date>
    </item>
  </channel>
</rss>

