<?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: Create measure using DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-using-DAX/m-p/3302058#M123213</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; No error now, however PO Status lists Active everywhere.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2023 09:26:01 GMT</pubDate>
    <dc:creator>SJHALANI</dc:creator>
    <dc:date>2023-06-26T09:26:01Z</dc:date>
    <item>
      <title>Create measure using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-using-DAX/m-p/3301649#M123178</link>
      <description>&lt;P&gt;Hi Guys!&lt;BR /&gt;&lt;BR /&gt;I have a column in my table which lists "'PO Year". It could have values 2021, 2022 or 2023. I want to create a new column measure called "PO Status" where if the PO year is 2021 or 2022, PO Status should say "Inactive" otherwise "Active".&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;PO Year&lt;/TD&gt;&lt;TD&gt;PO Status&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&gt;Inactive&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;TD&gt;Inactive&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;TD&gt;Active&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;What should be the DAX command to help me achieve this? I am new to DAX commands, so any help is appreciated. Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 06:05:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-using-DAX/m-p/3301649#M123178</guid>
      <dc:creator>SJHALANI</dc:creator>
      <dc:date>2023-06-26T06:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create measure using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-using-DAX/m-p/3301651#M123179</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="510640" data-lia-user-login="SJHALANI" class="lia-mention lia-mention-user"&gt;SJHALANI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;PO Status =
IF (
    SELECTEDVALUE ( 'Table'[PO Year] ) IN { 2021, 2022 },
    "Inactive",
    "Active"
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 26 Jun 2023 06:10:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-using-DAX/m-p/3301651#M123179</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-26T06:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create measure using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-using-DAX/m-p/3301658#M123180</link>
      <description>&lt;P&gt;IF( OR([&lt;SPAN&gt;PO Year] = 2021 , [PO Year] = 2022 ), "Inactive", "Active"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;OR&lt;BR /&gt;&lt;BR /&gt;IF([&lt;SPAN&gt;PO Year] = 2021&amp;nbsp; ||&amp;nbsp; [PO Year] = 2022 , "Inactive", "Active"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 06:19:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-using-DAX/m-p/3301658#M123180</guid>
      <dc:creator>devanshi</dc:creator>
      <dc:date>2023-06-26T06:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create measure using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-using-DAX/m-p/3301807#M123196</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; I am getting the below error. Would you know what this means and how to resolve this?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 07:33:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-using-DAX/m-p/3301807#M123196</guid>
      <dc:creator>SJHALANI</dc:creator>
      <dc:date>2023-06-26T07:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create measure using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-using-DAX/m-p/3301929#M123207</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="510640" data-lia-user-login="SJHALANI" class="lia-mention lia-mention-user"&gt;SJHALANI&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Ok, please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;PO Status =
IF (
    SELECTEDVALUE ( 'Table'[PO Year] ) IN { "2021", "2022" },
    "Inactive",
    "Active"
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 26 Jun 2023 08:29:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-using-DAX/m-p/3301929#M123207</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-26T08:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create measure using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-using-DAX/m-p/3302058#M123213</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; No error now, however PO Status lists Active everywhere.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 09:26:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-using-DAX/m-p/3302058#M123213</guid>
      <dc:creator>SJHALANI</dc:creator>
      <dc:date>2023-06-26T09:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create measure using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-using-DAX/m-p/3302089#M123218</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="510640" data-lia-user-login="SJHALANI" class="lia-mention lia-mention-user"&gt;SJHALANI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please create it as a measure only not as a calculated column.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 09:39:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-measure-using-DAX/m-p/3302089#M123218</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-26T09:39:44Z</dc:date>
    </item>
  </channel>
</rss>

