<?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: If statement with wildcards in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-wildcards/m-p/2119807#M48580</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try the Containsstring function.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/containsstring-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/containsstring-function-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Irfan&lt;/P&gt;</description>
    <pubDate>Wed, 06 Oct 2021 18:43:42 GMT</pubDate>
    <dc:creator>irfanelevated</dc:creator>
    <dc:date>2021-10-06T18:43:42Z</dc:date>
    <item>
      <title>If statement with wildcards</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-wildcards/m-p/2119391#M48568</link>
      <description>&lt;P class="lia-align-left"&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;I have about 15 years of data broken out into 4 categorys based on season FA, WI, SP, SU. I am attempting to label each label as Fall, Winter, Spring, Summer.&amp;nbsp; The data looks like 2020/FA, 2019/FA, 2018/FA...etc for all seasons.&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Currently I am doing an endless if by IF(Table = "2020/FA", "Fall", IF (Table = "2020/SP", Spring, IF....&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;This is turning into a very long and repetative processs and I was experimenting with wildcards (*,?) trying to be able to get,&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;IF(Table = "????/FA", "Fall", IF (Table = "????/SP", Spring, IF...., but neither * or ? was getting picked up as a wildcard.&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;Should the wildcard characters be outside of the "" or am I having my logic wrong any help is appricated, does not have to be an if statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 14:37:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-wildcards/m-p/2119391#M48568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-06T14:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with wildcards</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-wildcards/m-p/2119807#M48580</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try the Containsstring function.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/containsstring-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/containsstring-function-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Irfan&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 18:43:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-wildcards/m-p/2119807#M48580</guid>
      <dc:creator>irfanelevated</dc:creator>
      <dc:date>2021-10-06T18:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with wildcards</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-wildcards/m-p/2119862#M48582</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Hi, you can try below CALCUALTE COLUMN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Season = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;SWITCH(True,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;SPAN&gt;SEARCH("SP",TABLE[YearSeason],,BLANK())&amp;gt;0,"SPRING",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;SPAN&gt;SEARCH("SU",TABLE[YearSeason],,BLANK())&amp;gt;0,"SUMMER",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;SPAN&gt;SEARCH("FA",TABLE[YearSeason],,BLANK())&amp;gt;0,"FALL",&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;SPAN&gt;SEARCH("WI",TABLE[YearSeason],,BLANK())&amp;gt;0,"WINTER", BLANK()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please mark as soluntion if this helped.&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 19:17:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-wildcards/m-p/2119862#M48582</guid>
      <dc:creator>colacan</dc:creator>
      <dc:date>2021-10-06T19:17:05Z</dc:date>
    </item>
  </channel>
</rss>

