<?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 to be shown in card in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4029329#M159254</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Good day!!!&lt;BR /&gt;&lt;BR /&gt;Request your help on this issue.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2024 05:23:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-08T05:23:23Z</dc:date>
    <item>
      <title>Current Quarter to be shown in card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4022790#M158790</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I have the data from May 2023 to till date and I need to show the average current Quarter data in the card visual. Data will have the Transaction date, Adoption % and the store list. The report will be refreshed on a daily basis, but it have data 1 week prior to the current week. (If the report is refreshed on 3rd July, the data available in the report is 23th June to 29th June but we consider that as 23rd June data). &amp;nbsp;The requirement is showing recent Quarter data, I used the Current Month formula to show the data it worked perfectly until June 30th, when it refreshed on July 1st it shows no data available.&lt;BR /&gt;I need help to show the current Quarter data in the card visual with the available data in the report.&lt;BR /&gt;For example, Data available in the report till June 2024 when the data refreshed on 1st July it has to show the current available data (Quarter) i.e April to June 2024.&lt;/P&gt;&lt;P&gt;Note: Data is available from May 2023 to June 2024&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current QTR =&lt;/P&gt;&lt;P&gt;CALCULATE(AVERAGE('Adoption Trend_Dup'[NewAdoption]),YEAR('Adoption Trend_Dup'[TxnDt]) = YEAR(TODAY()),&lt;/P&gt;&lt;P&gt;'Calendar Table'[Quarter] = ROUNDUP(MONTH(TODAY())/3,0))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current Qtr_Var =&lt;/P&gt;&lt;P&gt;VAR _summarizeTable = ADDCOLUMNS(SUMMARIZE('Adoption Trend_Dup', 'Adoption Trend_Dup'[TxnDt],"average",AVERAGE('Adoption Trend_Dup'[NewAdoption])), "Quarter", QUARTER('Adoption Trend_Dup'[TxnDt]),"month",MONTH('Adoption Trend_Dup'[TxnDt]),"year",YEAR('Adoption Trend_Dup'[TxnDt]))&lt;/P&gt;&lt;P&gt;VAR _maxMonthNumber = MONTH(MAX('Adoption Trend_Dup'[TxnDt]))&lt;/P&gt;&lt;P&gt;Var _MaxQuarter = QUARTER(MAX('Adoption Trend_Dup'[TxnDt]))&lt;/P&gt;&lt;P&gt;VAR _maxYearNumber = YEAR(MAX('Adoption Trend_Dup'[TxnDt]))&lt;/P&gt;&lt;P&gt;VAR _rowscount = COUNTROWS(FILTER(_summarizeTable,[Quarter] = _MaxQuarter &amp;amp;&amp;amp; [year] = _maxYearNumber))&lt;/P&gt;&lt;P&gt;VAR _averageOfNewAdoption = SUMX(FILTER(_summarizeTable,[Quarter] = _MaxQuarter &amp;amp;&amp;amp; [year] = _maxYearNumber),[average])&lt;/P&gt;&lt;P&gt;RETURN DIVIDE(_averageOfNewAdoption,_rowscount,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;StoreName&lt;/TD&gt;&lt;TD&gt;StoreNo&lt;/TD&gt;&lt;TD&gt;Txn Dt&lt;/TD&gt;&lt;TD&gt;New Adoption&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AA&lt;/TD&gt;&lt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&lt;TR&gt;&lt;TD&gt;BB&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;9th June 2024&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CC&lt;/TD&gt;&lt;TD&gt;33&lt;/TD&gt;&lt;TD&gt;9th June 2024&lt;/TD&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AA&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;16th June 2024&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BB&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;16th June 2024&lt;/TD&gt;&lt;TD&gt;95&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CC&lt;/TD&gt;&lt;TD&gt;33&lt;/TD&gt;&lt;TD&gt;16th June 2024&lt;/TD&gt;&lt;TD&gt;36&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AA&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;23rd June 2024&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BB&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;23rd June 2024&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CC&lt;/TD&gt;&lt;TD&gt;33&lt;/TD&gt;&lt;TD&gt;23rd June 2024&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 03 Jul 2024 11:39:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4022790#M158790</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-03T11:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Current Quarter to be shown in card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4024081#M158833</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"I used the Current Month formula to show the data it worked perfectly until June 30th, when it refreshed on July 1st it shows no data available."&amp;nbsp;Does this statement mean that after a refresh, there is no data in the table that should be refreshed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To better help you, I have a question I need to confirm with you, is the Txn Dt column also formatted like this in your raw data? Because I tried to restore your scenario with your formula, but it produces an error because the Txn Dt column is a text column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following is testing I conducted after modifying the Txn Dt column and adding the data for March, for your reference:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Create a measure and put the measure into the filter so that the visual only shows data where the measure is equal to 1.&amp;nbsp;Doing this will cause the visualization to only show data for the current quarter.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _maxQuarter = CALCULATE(QUARTER(MAX([Txn Dt])), ALL('Adoption Trend_Dup'))
VAR _1 = IF(QUARTER(MAX([Txn Dt])) = _maxQuarter, 1, 0)
RETURN
_1&lt;/LI-CODE&gt;
&lt;P&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;2. Create a measure to calculate the average&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;average = CALCULATE(AVERAGE('Adoption Trend_Dup'[New Adoption]), FILTER('Adoption Trend_Dup', [Measure] = 1))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I misunderstood what you meant, feel free to let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yulia Xu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 03:22:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4024081#M158833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-04T03:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Current Quarter to be shown in card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4024405#M158856</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;BR /&gt;Thank you for the reply.&lt;BR /&gt;Yes, when the data is refreshed on July 1st, it didn't took the Quarter data. When the data is refreshed on 8th July, it will have to take the from 30th June to 6th July but we will consider whole data as 30th June only. Likewise, if the report refreshed on 15th July, the data in the report will have from 7th to 13th July but the report has to show only July data since we need to consider the Quarter-3 data i.e July to Sep.&lt;BR /&gt;Below is the screenshot of Txn Dt, its in Date Format.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;When i make the calculation which you have provided, its taking the data of 2023 May and June as well, we need to show only recent quarter in Card.&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;</description>
      <pubDate>Thu, 04 Jul 2024 07:12:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4024405#M158856</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-04T07:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Current Quarter to be shown in card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4026254#M158975</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Request your help on this.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 05:47:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4026254#M158975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-05T05:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Current Quarter to be shown in card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4026471#M158997</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to confirm your desired result with you. For example, when refreshing on July 15, the data of the previous week will be refreshed to Power BI. The card needs to show the average value of the quarter on July 7? But it is only July now, so only the average value of July is shown?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yulia Xu&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 07:05:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4026471#M158997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-05T07:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Current Quarter to be shown in card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4026500#M159000</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thats Correct, this should show the current quarter(July to Sep) which is July Month.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 07:20:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4026500#M159000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-05T07:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Current Quarter to be shown in card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4029329#M159254</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Good day!!!&lt;BR /&gt;&lt;BR /&gt;Request your help on this issue.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 05:23:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4029329#M159254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-08T05:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Current Quarter to be shown in card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4029585#M159269</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Today is July 8, and the data in the table should be from June 30 to July 6. So should we calculate the average value for the second quarter?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, you can try changing the formula to the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;average = 
VAR _minQuarter = CALCULATE(QUARTER(MIN([Txn Dt])), ALL('Adoption Trend_Dup'))
RETURN
CALCULATE(AVERAGE('Adoption Trend_Dup'[New Adoption]), FILTER('Adoption Trend_Dup', QUARTER([Txn Dt]) = _minQuarter))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since there is no data for other months in the second quarter except June in the table, the above formula only calculates the average value for June.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If June 30th does not belong to today's quarter and therefore does not need to be calculated, you can try the following method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;average1 = 
VAR _minQuarter = CALCULATE(QUARTER(MIN([Txn Dt])), ALL('Adoption Trend_Dup'))
VAR _currentQuarter = QUARTER(TODAY())
RETURN
IF(_minQuarter = _currentQuarter, CALCULATE(AVERAGE('Adoption Trend_Dup'[New Adoption]), FILTER('Adoption Trend_Dup', QUARTER([Txn Dt]) = _minQuarter)), BLANK())&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the problem persists, feel free to ask me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yulia Xu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 07:27:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4029585#M159269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-08T07:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Current Quarter to be shown in card</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4034524#M159803</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have updated the 1st Measure(June) in the report, i hope it will work when the next week refresh completed. It will have to show the July Month data, lets see. If not, will let you know.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 11:34:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Current-Quarter-to-be-shown-in-card/m-p/4034524#M159803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-10T11:34:45Z</dc:date>
    </item>
  </channel>
</rss>

