<?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: Backlog Calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Backlog-Calculation/m-p/2024213#M45192</link>
    <description>&lt;P&gt;It really is important which table you take fields from and put in your slicers and visuals. I'll give you a hint: &lt;EM&gt;Fact tables should &lt;STRONG&gt;always&lt;/STRONG&gt; have all their columns hidden (never put on the canvas) and slicing and dicing should &lt;STRONG&gt;always&lt;/STRONG&gt; be performed through dimensions&lt;/EM&gt;. Stick to this rule and you'll be less surprised.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, if you have to put columns from a fact table into a visual.... well, that means your design is &lt;STRONG&gt;incorrect&lt;/STRONG&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Aug 2021 18:25:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-08-18T18:25:29Z</dc:date>
    <item>
      <title>Backlog Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Backlog-Calculation/m-p/2023277#M45138</link>
      <description>&lt;P&gt;Dear Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope my post finds you well and healthy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following problem. I want to show how many tickets were opened on a particular date and how many were closed if any.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: I have created calendar table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I have 1 core measure which is # Of Cases =&amp;nbsp;&amp;nbsp;=DISTINCTCOUNT(OpenedAndClosedTicketsF[Case Number])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Then I created Open Cases =&lt;FONT size="2"&gt;CALCULATE([# Of Cases],USERELATIONSHIP(CalendarTable[Dates],OpenedAndClosedTicketsF[Date/Time Opened.1]))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;3. And Closed Cases &lt;FONT size="2"&gt;=CALCULATE([# Of Cases],USERELATIONSHIP(CalendarTable[Dates],OpenedAndClosedTicketsF[Date/Time Closed.1]))&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Then I created the measure Open Minus Closed&amp;nbsp;=[Open Cases] - [Closed Cases]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. And lastly I created the backlog measure as it follows:&amp;nbsp;&lt;FONT size="2"&gt;=CALCULATE([Open Minus Closed ],FILTER(ALL(CalendarTable),CalendarTable[Dates]&amp;lt;=MAX(CalendarTable[Dates])))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Everything works perfectly fine If I do not filter the table by any period or year.&lt;/FONT&gt;&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the backlog measure considers all the previous dates...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I am about to filter the table only by Aug-2021, these are the results I am getting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Obviously when I filter the measure is not considering the previous backlog and this is my problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you please help me correct it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All due respect,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Radoslava&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 10:27:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Backlog-Calculation/m-p/2023277#M45138</guid>
      <dc:creator>Ru_Petrakieva</dc:creator>
      <dc:date>2021-08-18T10:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Backlog Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Backlog-Calculation/m-p/2024213#M45192</link>
      <description>&lt;P&gt;It really is important which table you take fields from and put in your slicers and visuals. I'll give you a hint: &lt;EM&gt;Fact tables should &lt;STRONG&gt;always&lt;/STRONG&gt; have all their columns hidden (never put on the canvas) and slicing and dicing should &lt;STRONG&gt;always&lt;/STRONG&gt; be performed through dimensions&lt;/EM&gt;. Stick to this rule and you'll be less surprised.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, if you have to put columns from a fact table into a visual.... well, that means your design is &lt;STRONG&gt;incorrect&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 18:25:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Backlog-Calculation/m-p/2024213#M45192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-18T18:25:29Z</dc:date>
    </item>
  </channel>
</rss>

