<?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: Help with accumulated values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-accumulated-values/m-p/3715216#M144599</link>
    <description>&lt;P&gt;If you want to use the new Power BI Preview Feature of Visual Calculations, it may be very simple.&lt;BR /&gt;First make sure the feature is turned on in your settings:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Make a calculated column in your fact that is simply a value of "1" if the "Papel na rede" = "Franquia".&lt;BR /&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add a "New Calculation"&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add the new column in your visual as a value&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Choose the "Running Sum" calculation from the fx button and put the "Sum" of your column as the field"&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Lastly, "Hide" the Sum of your measure in the fields pane&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let me know if this does the calculation as you expected!&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Nick&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2024 20:28:21 GMT</pubDate>
    <dc:creator>NickDanger</dc:creator>
    <dc:date>2024-02-21T20:28:21Z</dc:date>
    <item>
      <title>Help with accumulated values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-accumulated-values/m-p/3711893#M144426</link>
      <description>&lt;P&gt;i have the following dax formula to count accumulated:&lt;/P&gt;&lt;P&gt;I also have a related table to "escritorio ajustado" and a related table to "Regional"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=CALCULATE(
COUNTROWS(franqueados);
franqueados[Papel na rede] =  "Franquia";
FILTER(ALLEXCEPT(franqueados; franqueados[Escritório Ajustado]; franqueados[Regional]);
franqueados[Data da ativação]&amp;lt;= MAX('Calendar'[Date])))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;the problem is that when I build the pivot table with the related tables on the rows, it doesnt filter for each "escritorio"and "regional". what am I missing here?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 17:51:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-accumulated-values/m-p/3711893#M144426</guid>
      <dc:creator>vgarciasouza</dc:creator>
      <dc:date>2024-02-20T17:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with accumulated values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-accumulated-values/m-p/3712859#M144469</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="675006" data-lia-user-login="vgarciasouza" class="lia-mention lia-mention-user"&gt;vgarciasouza&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please &lt;SPAN&gt;try the following methods and check if they can solve your problem:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.Ensure that the relationships between the tables are correctly set up.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.Verify that the relationships are active.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3.Adjust the DAX to the following formula.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;= CALCULATE(
    COUNTROWS(franqueados);
    franqueados[Papel na rede] = "Franquia";
    FILTER(
        ALLEXCEPT(franqueados; franqueados[Escritório Ajustado]; franqueados[Regional]);
        franqueados[Data da ativação] &amp;lt;= MAX('Calendar'[Date]);
        franqueados[Escritório Ajustado] IN VALUES('Table'[Escritório Ajustado]);
        franqueados[Regional] IN VALUES('Table1'[Regional])
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;If the above ones can’t help you get it working, c&lt;SPAN&gt;ould you please provide &lt;/SPAN&gt;more raw data(exclude sensitive data) with Text format &lt;SPAN&gt;to make a deep troubleshooting? &lt;/SPAN&gt;It would be helpful to find out the solution.&lt;/P&gt;
&lt;P&gt;You can refer the following links to share the required info:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=05%7C01%7CClaire.Dong%40microsoft.com%7Cada9149bd91546a8432508dacd31ef9b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638047911607737134%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=EJlYfclgtrjgAEYj9Uo1AauqxaQm3hlQsjJMo4zCY1M%3D&amp;amp;reserved=0" target="_blank"&gt;How to provide sample data in the Power BI Forum&lt;/A&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;
&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 03:04:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-accumulated-values/m-p/3712859#M144469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-21T03:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with accumulated values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-accumulated-values/m-p/3715152#M144589</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;, I didn't managed to make this formula work. You can find the file with a sample of the data &lt;A href="https://1drv.ms/x/s!AoyEAUoNIf8Ai6YVX8CpW3x03YZwTQ" target="_blank" rel="noopener"&gt;here.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The measure I am trying to figure out is&amp;nbsp;cFranqueadosAcumulados. Thank you for your help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Victort Hugo.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 19:16:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-accumulated-values/m-p/3715152#M144589</guid>
      <dc:creator>vgarciasouza</dc:creator>
      <dc:date>2024-02-21T19:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with accumulated values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-accumulated-values/m-p/3715216#M144599</link>
      <description>&lt;P&gt;If you want to use the new Power BI Preview Feature of Visual Calculations, it may be very simple.&lt;BR /&gt;First make sure the feature is turned on in your settings:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Make a calculated column in your fact that is simply a value of "1" if the "Papel na rede" = "Franquia".&lt;BR /&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add a "New Calculation"&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add the new column in your visual as a value&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Choose the "Running Sum" calculation from the fx button and put the "Sum" of your column as the field"&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Lastly, "Hide" the Sum of your measure in the fields pane&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Let me know if this does the calculation as you expected!&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Nick&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 20:28:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-accumulated-values/m-p/3715216#M144599</guid>
      <dc:creator>NickDanger</dc:creator>
      <dc:date>2024-02-21T20:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help with accumulated values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-accumulated-values/m-p/3719835#M144831</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="694227" data-lia-user-login="NickDanger" class="lia-mention lia-mention-user"&gt;NickDanger&lt;/a&gt;&amp;nbsp;, thank you for the effort!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I needed it as a measure, because I'll use it in calculations further down the road.&amp;nbsp; Also, I needed it to be accumulating int time, therefore the total in 2024 should be 884.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 13:06:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-accumulated-values/m-p/3719835#M144831</guid>
      <dc:creator>vgarciasouza</dc:creator>
      <dc:date>2024-02-23T13:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with accumulated values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-accumulated-values/m-p/3719841#M144833</link>
      <description>&lt;P&gt;I got it. the issue was that I wal filtering on the "franqueados" table, while I should be filtering on the "calendar" table.. Here is the measure that generates the expected running total:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=CALCULATE(
   COUNTROWS(franqueados);
   franqueados[Papel na rede] =  "Franquia";
   FILTER(
      ALLSELECTED('Calendar'[Date]);
      ISONORAFTER('Calendar'[Date]; MAX('Calendar'[Date]); DESC
      )
   )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="694227" data-lia-user-login="NickDanger" class="lia-mention lia-mention-user"&gt;NickDanger&lt;/a&gt;&amp;nbsp;for participating on this thread and helping figuring it out!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Victor Hugo.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 13:11:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-accumulated-values/m-p/3719841#M144833</guid>
      <dc:creator>vgarciasouza</dc:creator>
      <dc:date>2024-02-23T13:11:21Z</dc:date>
    </item>
  </channel>
</rss>

