<?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: Annual Completion/Monthly Totals in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Annual-Completion-Monthly-Totals/m-p/4352579#M172843</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="908848" data-lia-user-login="newtoallthis11" class="lia-mention lia-mention-user"&gt;newtoallthis11&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I expanded your sample data according to your needs:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;And you need to add other two tables for year slicer and X-axis of line chart:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Use this DAX to create a &lt;STRONG&gt;calculated table&lt;/STRONG&gt;:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Calendar = CALENDAR(DATE(2023,6,1), TODAY())&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;No relationship between them:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;For your requirement Card 1:&lt;BR /&gt;Use these DAXs to create &lt;STRONG&gt;measures&lt;/STRONG&gt;:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Blade Checked = 
VAR _year = SELECTEDVALUE(Year_slicer[Year])
RETURN
IF(
    ISFILTERED(Year_slicer[Year]),
    CALCULATE(
        COUNT('Table'[Blade Checked Date]),
        YEAR('Table'[Blade Checked Date]) = _year
    ),
    COUNT('Table'[Blade Checked Date])
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Boot Checked = 
VAR _year = SELECTEDVALUE(Year_slicer[Year])
RETURN
IF(
    ISFILTERED(Year_slicer[Year]),
    CALCULATE(
        COUNT('Table'[Boot Checked Date]),
        YEAR('Table'[Boot Checked Date]) = _year
    ),
    COUNT('Table'[Boot Checked Date])
)&lt;/LI-CODE&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;For your requirement Chart:&lt;BR /&gt;Use this DAX to create a measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_count = 
CALCULATE(
    COUNT('Table'[Blade Checked Date]),
    YEAR('Table'[Blade Checked Date]) = YEAR(MAX('Calendar'[Date])) &amp;amp;&amp;amp; MONTH('Table'[Blade Checked Date]) = MONTH(MAX('Calendar'[Date]))
)&lt;/LI-CODE&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Please modify DAX to calculate other columns.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dino Tao&lt;BR /&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>Tue, 07 Jan 2025 02:01:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-01-07T02:01:06Z</dc:date>
    <item>
      <title>Annual Completion/Monthly Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Annual-Completion-Monthly-Totals/m-p/4352133#M172825</link>
      <description>&lt;P&gt;New to this. Have done some training but seeking the best practice that isnt over complicated.&lt;/P&gt;&lt;P&gt;I have a dataset that contains end dates of specific items. For this instance, i will call them "hockey skates" and they are in a table called "equipment". Each skate component need to be "checked" and "approved" and will only have the date that this has been completed on and who they were completed by.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to have a datacard on a Power Bi that would show the following values when slicers are used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Card 1 - Number of Blades "Checked" in a selected year. So if i have a slicer based on year, if i select 2023, i would get 2. If i selected 2024, i would get 1. I would have multiple cards for the other columns as well (boots Checked, Blades Approved, etc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chart - I would also like to be able to display in a line chart/bar graph, etc, the number that each inspector has done each month, that would start say in June of 2023 and would keep going as time goes on. To see the progress of work completed by each individual that was selected in a slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the solution a combination of calculated columns and measures to display. Any guidance would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Skate S/N&lt;/TD&gt;&lt;TD&gt;Inspector&lt;/TD&gt;&lt;TD&gt;Blade Checked Date&lt;/TD&gt;&lt;TD&gt;Boot Checked Date&lt;/TD&gt;&lt;TD&gt;QC Approver&lt;/TD&gt;&lt;TD&gt;Blade Approved Date&lt;/TD&gt;&lt;TD&gt;Boot Approved Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Tom&lt;/TD&gt;&lt;TD&gt;11/15/2023&lt;/TD&gt;&lt;TD&gt;11/28/2023&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;12/12/2023&lt;/TD&gt;&lt;TD&gt;01/15/2024&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Steve&lt;/TD&gt;&lt;TD&gt;10/19/2023&lt;/TD&gt;&lt;TD&gt;01/12/2024&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;02/09/2024&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;03/15/2024&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Rick&lt;/TD&gt;&lt;TD&gt;01/05/2024&lt;/TD&gt;&lt;TD&gt;01/09/2024&lt;/TD&gt;&lt;TD&gt;Dave&lt;/TD&gt;&lt;TD&gt;01/18/2024&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;06/19/2024&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 06 Jan 2025 16:11:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Annual-Completion-Monthly-Totals/m-p/4352133#M172825</guid>
      <dc:creator>newtoallthis11</dc:creator>
      <dc:date>2025-01-06T16:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Annual Completion/Monthly Totals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Annual-Completion-Monthly-Totals/m-p/4352579#M172843</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="908848" data-lia-user-login="newtoallthis11" class="lia-mention lia-mention-user"&gt;newtoallthis11&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I expanded your sample data according to your needs:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;And you need to add other two tables for year slicer and X-axis of line chart:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Use this DAX to create a &lt;STRONG&gt;calculated table&lt;/STRONG&gt;:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Calendar = CALENDAR(DATE(2023,6,1), TODAY())&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;No relationship between them:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;For your requirement Card 1:&lt;BR /&gt;Use these DAXs to create &lt;STRONG&gt;measures&lt;/STRONG&gt;:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Blade Checked = 
VAR _year = SELECTEDVALUE(Year_slicer[Year])
RETURN
IF(
    ISFILTERED(Year_slicer[Year]),
    CALCULATE(
        COUNT('Table'[Blade Checked Date]),
        YEAR('Table'[Blade Checked Date]) = _year
    ),
    COUNT('Table'[Blade Checked Date])
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Boot Checked = 
VAR _year = SELECTEDVALUE(Year_slicer[Year])
RETURN
IF(
    ISFILTERED(Year_slicer[Year]),
    CALCULATE(
        COUNT('Table'[Boot Checked Date]),
        YEAR('Table'[Boot Checked Date]) = _year
    ),
    COUNT('Table'[Boot Checked Date])
)&lt;/LI-CODE&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;For your requirement Chart:&lt;BR /&gt;Use this DAX to create a measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_count = 
CALCULATE(
    COUNT('Table'[Blade Checked Date]),
    YEAR('Table'[Blade Checked Date]) = YEAR(MAX('Calendar'[Date])) &amp;amp;&amp;amp; MONTH('Table'[Blade Checked Date]) = MONTH(MAX('Calendar'[Date]))
)&lt;/LI-CODE&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Please modify DAX to calculate other columns.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dino Tao&lt;BR /&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>Tue, 07 Jan 2025 02:01:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Annual-Completion-Monthly-Totals/m-p/4352579#M172843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-07T02:01:06Z</dc:date>
    </item>
  </channel>
</rss>

