<?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: Current Quarter calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-calculation/m-p/2771900#M86318</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Make your Yes/No slicer into a 2 rows in a disconnected table. Then construct a measure like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
  VAR __Current = SELECTEDVALUE('ParameterTable'[Column])
  VAR __Value = IF(
                    __Current = "Yes",
                    SUMX(FILTER('Table',[Current Quarter] = "Yes"),[Value]
                    SUM('Table'[Value])
                )
RETURN
  __Value&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 16 Sep 2022 01:13:24 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2022-09-16T01:13:24Z</dc:date>
    <item>
      <title>Current Quarter calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-calculation/m-p/2771740#M86313</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Current Quarter"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;QUARTER&lt;/SPAN&gt;&lt;SPAN&gt;)=&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Yes"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"No"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am using this statement as a slicer in my powerbi report :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem when it we selecT yes it is showing correct data , when we press No , it is exculding the current quarter data :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thr requirement when selected current Yes display only current quarter , when selected No display all quarters including current quarter .&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Sep 2022 22:14:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-calculation/m-p/2771740#M86313</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-15T22:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Current Quarter calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-calculation/m-p/2771900#M86318</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Make your Yes/No slicer into a 2 rows in a disconnected table. Then construct a measure like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
  VAR __Current = SELECTEDVALUE('ParameterTable'[Column])
  VAR __Value = IF(
                    __Current = "Yes",
                    SUMX(FILTER('Table',[Current Quarter] = "Yes"),[Value]
                    SUM('Table'[Value])
                )
RETURN
  __Value&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 16 Sep 2022 01:13:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-calculation/m-p/2771900#M86318</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-09-16T01:13:24Z</dc:date>
    </item>
  </channel>
</rss>

