<?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 Dax to get active contracts in the current year and last year by using status Colum. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-get-active-contracts-in-the-current-year-and-last-year-by/m-p/3713522#M144507</link>
    <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I have a requriment to get the active contracts by using DAX.&lt;BR /&gt;Scenario 1: If the contract is active in any one month of the year need to consider as a active contract. and If the contract is inactive in all the months of a year need to consider as a inactive, like below.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scenario 2 : with the help of above active/Inactive status we need to calculate below win/Loss&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;TD&gt;WIN or LOSS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;case 1&lt;/TD&gt;&lt;TD&gt;Inactive&lt;/TD&gt;&lt;TD&gt;Inactive&lt;/TD&gt;&lt;TD&gt;Not Applicable&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Case 2&lt;/TD&gt;&lt;TD&gt;Inactive&lt;/TD&gt;&lt;TD&gt;active&lt;/TD&gt;&lt;TD&gt;WIN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Case 3&lt;/TD&gt;&lt;TD&gt;active&lt;/TD&gt;&lt;TD&gt;active&lt;/TD&gt;&lt;TD&gt;ORGANIC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Case 4&lt;/TD&gt;&lt;TD&gt;active&lt;/TD&gt;&lt;TD&gt;Inactive&lt;/TD&gt;&lt;TD&gt;LOSS&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2024 08:06:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-02-21T08:06:33Z</dc:date>
    <item>
      <title>Dax to get active contracts in the current year and last year by using status Colum.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-get-active-contracts-in-the-current-year-and-last-year-by/m-p/3713522#M144507</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;&lt;BR /&gt;I have a requriment to get the active contracts by using DAX.&lt;BR /&gt;Scenario 1: If the contract is active in any one month of the year need to consider as a active contract. and If the contract is inactive in all the months of a year need to consider as a inactive, like below.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scenario 2 : with the help of above active/Inactive status we need to calculate below win/Loss&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;TD&gt;WIN or LOSS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;case 1&lt;/TD&gt;&lt;TD&gt;Inactive&lt;/TD&gt;&lt;TD&gt;Inactive&lt;/TD&gt;&lt;TD&gt;Not Applicable&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Case 2&lt;/TD&gt;&lt;TD&gt;Inactive&lt;/TD&gt;&lt;TD&gt;active&lt;/TD&gt;&lt;TD&gt;WIN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Case 3&lt;/TD&gt;&lt;TD&gt;active&lt;/TD&gt;&lt;TD&gt;active&lt;/TD&gt;&lt;TD&gt;ORGANIC&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Case 4&lt;/TD&gt;&lt;TD&gt;active&lt;/TD&gt;&lt;TD&gt;Inactive&lt;/TD&gt;&lt;TD&gt;LOSS&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 08:06:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-get-active-contracts-in-the-current-year-and-last-year-by/m-p/3713522#M144507</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-21T08:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to get active contracts in the current year and last year by using status Colum.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-get-active-contracts-in-the-current-year-and-last-year-by/m-p/3715008#M144574</link>
      <description>&lt;P&gt;Sounds straightforward. What have you tried and where are you stuck?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 17:29:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-get-active-contracts-in-the-current-year-and-last-year-by/m-p/3715008#M144574</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-21T17:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dax to get active contracts in the current year and last year by using status Colum.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-get-active-contracts-in-the-current-year-and-last-year-by/m-p/3715851#M144628</link>
      <description>&lt;P&gt;we are stuck to comepare 2023 and 2022 values, As we want to create a&amp;nbsp;stacked bar chart we need the count of win/loss by month.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 04:00:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-to-get-active-contracts-in-the-current-year-and-last-year-by/m-p/3715851#M144628</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-22T04:00:50Z</dc:date>
    </item>
  </channel>
</rss>

