<?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: Using a Measure to create a new column that can be used to filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-create-a-new-column-that-can-be-used-to/m-p/2604349#M75367</link>
    <description>&lt;P&gt;Thank you &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353745" data-lia-user-login="tackytechtom" class="lia-mention lia-mention-user"&gt;tackytechtom&lt;/a&gt;.&amp;nbsp; Unfortunately, I think getting the new types added to the model is probably the only way for this to work as we need.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2022 14:14:42 GMT</pubDate>
    <dc:creator>Bernstra</dc:creator>
    <dc:date>2022-06-27T14:14:42Z</dc:date>
    <item>
      <title>Using a Measure to create a new column that can be used to filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-create-a-new-column-that-can-be-used-to/m-p/2598893#M75058</link>
      <description>&lt;P&gt;I am working with an Analysis Services dataset, and I do not have access to create a new column.&amp;nbsp; There is a column named "type" in the item table that we need to adjust, and then use to filter the data.&amp;nbsp; If I could create a column, then a couple IF statements and SWITCH work to do exactly what we need, but in this dataset that is not possible.&amp;nbsp; The data would be similar to the table below:&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;Item #&lt;/TD&gt;&lt;TD&gt;Group&lt;/TD&gt;&lt;TD&gt;Type&lt;/TD&gt;&lt;TD&gt;&lt;EM&gt;New Type&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;T1&lt;/TD&gt;&lt;TD&gt;&lt;EM&gt;TA&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;T1&lt;/TD&gt;&lt;TD&gt;&lt;EM&gt;TA&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;T2&lt;/TD&gt;&lt;TD&gt;&lt;EM&gt;TB&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;T3&lt;/TD&gt;&lt;TD&gt;&lt;EM&gt;TB&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Where the New Type column is the column we would like to create:&lt;/P&gt;&lt;P&gt;Type T1 -&amp;gt; New Type TA&lt;/P&gt;&lt;P&gt;Type T2 -&amp;gt; New Type TB&lt;/P&gt;&lt;P&gt;Type T3 -&amp;gt; New Type TB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do this with a measure and be able to filter the table using the "new type"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 21:24:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-create-a-new-column-that-can-be-used-to/m-p/2598893#M75058</guid>
      <dc:creator>Bernstra</dc:creator>
      <dc:date>2022-06-23T21:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Measure to create a new column that can be used to filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-create-a-new-column-that-can-be-used-to/m-p/2598907#M75059</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="235504" data-lia-user-login="Bernstra" class="lia-mention lia-mention-user"&gt;Bernstra&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;TypeSwitchMeasure = 
SWITCH (
    TRUE(),
    MAX ( TableFilterExample[Type] ) = "T1", "TA",
    MAX ( TableFilterExample[Type] ) = "T2", "TB",
    MAX ( TableFilterExample[Type] ) = "T3", "TB",
    BLANK()
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note, measure cannot be used in slicers, so you need to use the fiilter pane to do filtering. Also, I highly recommend to ask your back end people to add the new types to the analysis services model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps you anyway! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Tom&lt;BR /&gt;&lt;A href="https://www.tackytech.blog/" target="_blank"&gt;https://www.tackytech.blog/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.instagram.com/tackytechtom/" target="_blank"&gt;https://www.instagram.com/tackytechtom/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 21:46:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-create-a-new-column-that-can-be-used-to/m-p/2598907#M75059</guid>
      <dc:creator>tackytechtom</dc:creator>
      <dc:date>2022-06-23T21:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using a Measure to create a new column that can be used to filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-create-a-new-column-that-can-be-used-to/m-p/2604349#M75367</link>
      <description>&lt;P&gt;Thank you &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="353745" data-lia-user-login="tackytechtom" class="lia-mention lia-mention-user"&gt;tackytechtom&lt;/a&gt;.&amp;nbsp; Unfortunately, I think getting the new types added to the model is probably the only way for this to work as we need.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 14:14:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-Measure-to-create-a-new-column-that-can-be-used-to/m-p/2604349#M75367</guid>
      <dc:creator>Bernstra</dc:creator>
      <dc:date>2022-06-27T14:14:42Z</dc:date>
    </item>
  </channel>
</rss>

