<?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: count current \ previous year based on date from another table(not calendar) dax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-current-previous-year-based-on-date-from-another-table-not/m-p/3087770#M108028</link>
    <description>&lt;P&gt;I dont think this is it. if i choose the sclicer for 2023&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and if i choose the slicer for 2022 its giving me 302 which supposed to be&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Feb 2023 11:19:24 GMT</pubDate>
    <dc:creator>Rami_Aziz</dc:creator>
    <dc:date>2023-02-20T11:19:24Z</dc:date>
    <item>
      <title>count current \ previous year based on date from another table(not calendar) dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-current-previous-year-based-on-date-from-another-table-not/m-p/3087715#M108025</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;kindly you help, im trying to get the count from Table1 fot current year and Previous year based on a column date from different table 2, so i need to get the count on two cards 1.current year , 2. previous year&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the two table got a relationship field , i tried previousyear &amp;amp; dateadd but didnt work&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i could get current year but not sure about it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;current year = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(msdyn_workorder[Service Account]),&lt;/SPAN&gt;&lt;SPAN&gt;DATESYTD&lt;/SPAN&gt;&lt;SPAN&gt;(bookableresourcebooking[Start Time]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Count WO from Table 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Date from table 2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 10:56:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-current-previous-year-based-on-date-from-another-table-not/m-p/3087715#M108025</guid>
      <dc:creator>Rami_Aziz</dc:creator>
      <dc:date>2023-02-20T10:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: count current \ previous year based on date from another table(not calendar) dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-current-previous-year-based-on-date-from-another-table-not/m-p/3087725#M108026</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="491037" data-lia-user-login="Rami_Aziz" class="lia-mention lia-mention-user"&gt;Rami_Aziz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try like:&lt;/P&gt;&lt;DIV&gt;last year =&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CALCULATE(&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; COUNT(msdyn_workorder[Service Account]),&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SAMEPERIODLASTYEAR(DATESYTD(bookableresourcebooking[Start Time]))&lt;/DIV&gt;&lt;DIV&gt;)&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Feb 2023 11:02:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-current-previous-year-based-on-date-from-another-table-not/m-p/3087725#M108026</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-20T11:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: count current \ previous year based on date from another table(not calendar) dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-current-previous-year-based-on-date-from-another-table-not/m-p/3087770#M108028</link>
      <description>&lt;P&gt;I dont think this is it. if i choose the sclicer for 2023&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and if i choose the slicer for 2022 its giving me 302 which supposed to be&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 11:19:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-current-previous-year-based-on-date-from-another-table-not/m-p/3087770#M108028</guid>
      <dc:creator>Rami_Aziz</dc:creator>
      <dc:date>2023-02-20T11:19:24Z</dc:date>
    </item>
  </channel>
</rss>

