<?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: Dax using IF and Contains in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-using-IF-and-Contains/m-p/2091925#M47634</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="127344" data-lia-user-login="jessenewold" class="lia-mention lia-mention-user"&gt;jessenewold&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can try this approach:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
IF (
    CONTAINSSTRING ( SELECTEDVALUE ( T4[TERMINAL ID] ), "$" ) = TRUE (),
    "MOBILE",
    SELECTEDVALUE ( T4[TERMINAL ID] )
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#333399"&gt;&lt;EM&gt;If this post helps, then please consider &lt;U&gt;Accept it as the solution&lt;/U&gt; &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Sep 2021 15:43:17 GMT</pubDate>
    <dc:creator>ERD</dc:creator>
    <dc:date>2021-09-22T15:43:17Z</dc:date>
    <item>
      <title>Dax using IF and Contains</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-using-IF-and-Contains/m-p/2091664#M47624</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created the below to replace the name of the terminal ID i.e. CAD01-2006 with Dispatch etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have hundreds of terminals.&amp;nbsp; I want to be able to find all of the terminals that have "web" in the name and replace them with a new name.&amp;nbsp; &amp;nbsp;Help is very much appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 14:14:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-using-IF-and-Contains/m-p/2091664#M47624</guid>
      <dc:creator>jessenewold</dc:creator>
      <dc:date>2021-09-22T14:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dax using IF and Contains</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-using-IF-and-Contains/m-p/2091692#M47626</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="127344" data-lia-user-login="jessenewold" class="lia-mention lia-mention-user"&gt;jessenewold&lt;/a&gt;&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 14:22:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-using-IF-and-Contains/m-p/2091692#M47626</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-09-22T14:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dax using IF and Contains</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-using-IF-and-Contains/m-p/2091763#M47630</link>
      <description>&lt;P&gt;I want to find all terminal ID's that have $ in the name and name them "Mobile" in the Created Terminal Group column. Final all termianl ID's that have ABC in the name and name them "Center1" in the Created Terminal Group column.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;TERMINAL ID&lt;/TD&gt;&lt;TD&gt;CREATED TERMINAL GROUP&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;$1&lt;/TD&gt;&lt;TD&gt;MOBILE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;$3&lt;/TD&gt;&lt;TD&gt;MOBILE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;$5&lt;/TD&gt;&lt;TD&gt;MOBILE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;$6&lt;/TD&gt;&lt;TD&gt;MOBILE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABCpc150-037&lt;/TD&gt;&lt;TD&gt;CENTER1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABCpc150-038&lt;/TD&gt;&lt;TD&gt;CENTER1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABCpc150-039&lt;/TD&gt;&lt;TD&gt;CENTER1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABCpc150-040&lt;/TD&gt;&lt;TD&gt;CENTER1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABCpc150-041&lt;/TD&gt;&lt;TD&gt;CENTER1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABCpc150-042&lt;/TD&gt;&lt;TD&gt;CENTER1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 22 Sep 2021 14:43:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-using-IF-and-Contains/m-p/2091763#M47630</guid>
      <dc:creator>jessenewold</dc:creator>
      <dc:date>2021-09-22T14:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dax using IF and Contains</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-using-IF-and-Contains/m-p/2091925#M47634</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="127344" data-lia-user-login="jessenewold" class="lia-mention lia-mention-user"&gt;jessenewold&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;You can try this approach:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
IF (
    CONTAINSSTRING ( SELECTEDVALUE ( T4[TERMINAL ID] ), "$" ) = TRUE (),
    "MOBILE",
    SELECTEDVALUE ( T4[TERMINAL ID] )
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#333399"&gt;&lt;EM&gt;If this post helps, then please consider &lt;U&gt;Accept it as the solution&lt;/U&gt; &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 15:43:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-using-IF-and-Contains/m-p/2091925#M47634</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-09-22T15:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dax using IF and Contains</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-using-IF-and-Contains/m-p/2091974#M47637</link>
      <description>&lt;P&gt;Thank you so very much - this is exactly what I was looking for.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 16:09:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-using-IF-and-Contains/m-p/2091974#M47637</guid>
      <dc:creator>jessenewold</dc:creator>
      <dc:date>2021-09-22T16:09:12Z</dc:date>
    </item>
  </channel>
</rss>

