<?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: Reinsert filter after using ALL in a measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reinsert-filter-after-using-ALL-in-a-measure/m-p/3029048#M103433</link>
    <description>&lt;P&gt;Thanks a lot. It worked! It was infront of me and i could never see it&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2023 15:36:00 GMT</pubDate>
    <dc:creator>Ackbar-Learner</dc:creator>
    <dc:date>2023-01-18T15:36:00Z</dc:date>
    <item>
      <title>Reinsert filter after using ALL in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reinsert-filter-after-using-ALL-in-a-measure/m-p/3027444#M103286</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Below dax code first removes the date filter from the visual and calculates data based on other dates from measures. This returns the total amount from First to Last.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Board10bP&amp;amp;LAllTransactionAmountwithSignBudgetActualized = 
VAR First = if(and(TODAY()&amp;gt;=[Board10aFirstDateSelected], TODAY()&amp;gt;= [Board10aLastDateSelected]),[Board10aLastDateSelected]+1,if(and(TODAY()&amp;lt;[Board10aFirstDateSelected], TODAY()&amp;lt; [Board10aLastDateSelected]),[Board10aFirstDateSelected],TODAY()+1))
VAR Last = CALCULATE(MAX( BudgetCalendar[Date] ),ALL( BudgetCalendar ))
RETURN
CALCULATE(
    [AmountWithSign],
    ALL(BudgetCalendar[Date]),DATESBETWEEN(BudgetCalendar[Date],First,Last)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The issue is that i want this total data still to be summarized by the date hierarchy (year, quarter, month) in the visual. I tried my hand at Summarizecolumns but i have not grasped that yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for a kind help.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 03:28:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reinsert-filter-after-using-ALL-in-a-measure/m-p/3027444#M103286</guid>
      <dc:creator>Ackbar-Learner</dc:creator>
      <dc:date>2023-01-18T03:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reinsert filter after using ALL in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reinsert-filter-after-using-ALL-in-a-measure/m-p/3028276#M103356</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;Hi Amit, maybe you could help on above. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 09:57:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reinsert-filter-after-using-ALL-in-a-measure/m-p/3028276#M103356</guid>
      <dc:creator>Ackbar-Learner</dc:creator>
      <dc:date>2023-01-18T09:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reinsert filter after using ALL in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reinsert-filter-after-using-ALL-in-a-measure/m-p/3028986#M103424</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="435924" data-lia-user-login="Ackbar-Learner" class="lia-mention lia-mention-user"&gt;Ackbar-Learner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you may try:&lt;/P&gt;&lt;P&gt;Board10bP&amp;amp;LAllTransactionAmountwithSignBudgetActualized =&lt;BR /&gt;VAR First = if(and(TODAY()&amp;gt;=[Board10aFirstDateSelected], TODAY()&amp;gt;= [Board10aLastDateSelected]),[Board10aLastDateSelected]+1,if(and(TODAY()&amp;lt;[Board10aFirstDateSelected], TODAY()&amp;lt; [Board10aLastDateSelected]),[Board10aFirstDateSelected],TODAY()+1))&lt;BR /&gt;VAR Last = CALCULATE(MAX( BudgetCalendar[Date] ),&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;ALL( BudgetCalendar[Date]&lt;/FONT&gt;&lt;/STRONG&gt; ))&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[AmountWithSign],&lt;BR /&gt;ALL(BudgetCalendar[Date]),DATESBETWEEN(BudgetCalendar[Date],First,Last)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 15:03:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reinsert-filter-after-using-ALL-in-a-measure/m-p/3028986#M103424</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-18T15:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reinsert filter after using ALL in a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reinsert-filter-after-using-ALL-in-a-measure/m-p/3029048#M103433</link>
      <description>&lt;P&gt;Thanks a lot. It worked! It was infront of me and i could never see it&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 15:36:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Reinsert-filter-after-using-ALL-in-a-measure/m-p/3029048#M103433</guid>
      <dc:creator>Ackbar-Learner</dc:creator>
      <dc:date>2023-01-18T15:36:00Z</dc:date>
    </item>
  </channel>
</rss>

