<?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: MUltiple IF and statements in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MUltiple-IF-and-statements/m-p/3591803#M138691</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="392269" data-lia-user-login="Jay2022" class="lia-mention lia-mention-user"&gt;Jay2022&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2023 16:06:02 GMT</pubDate>
    <dc:creator>Dangar332</dc:creator>
    <dc:date>2023-12-19T16:06:02Z</dc:date>
    <item>
      <title>MUltiple IF and statements</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MUltiple-IF-and-statements/m-p/3591009#M138638</link>
      <description>&lt;P&gt;Hi I keep getting Syntax errors when I try the following formula. Where am I going wrong&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New_Column = IF('Table'[Store]= "A", "A",&lt;/P&gt;&lt;P&gt;IF('Table'[Store]= "B", "B",&lt;/P&gt;&lt;P&gt;IF('Table'[Store]= "C", &amp;amp;&amp;amp; (‘Table’[Sales Date]&amp;lt;=TODAY(), “B”&lt;/P&gt;&lt;P&gt;IF('Table'[Store]= "D", &amp;amp;&amp;amp; (‘Table’[Sales Date]&amp;lt;=TODAY(), “B”&lt;/P&gt;&lt;P&gt;IF('Table'[Store]= "C", &amp;amp;&amp;amp; (‘Table’[Sales Date]&amp;gt;TODAY(), “C”&lt;/P&gt;&lt;P&gt;IF('Table'[Store]= "D", &amp;amp;&amp;amp; (‘Table’[Sales Date]&amp;gt;TODAY(), “D”,” ”))&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 10:32:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MUltiple-IF-and-statements/m-p/3591009#M138638</guid>
      <dc:creator>Jay2022</dc:creator>
      <dc:date>2023-12-19T10:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: MUltiple IF and statements</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MUltiple-IF-and-statements/m-p/3591023#M138639</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="392269" data-lia-user-login="Jay2022" class="lia-mention lia-mention-user"&gt;Jay2022&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="392269" data-lia-user-login="Jay2022" class="lia-mention lia-mention-user"&gt;Jay2022&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;try below code remove &lt;FONT color="#993300"&gt;(" , ")&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;New_Column = IF('Table'[Store]= "A", "A",

IF(
'Table'[Store]= "B", "B",

IF('Table'[Store]= "C" &amp;amp;&amp;amp; ‘Table’[Sales Date]&amp;lt;=TODAY(), “B”,

IF('Table'[Store]= "D" &amp;amp;&amp;amp; ‘Table’[Sales Date]&amp;lt;=TODAY(), “B”,

IF('Table'[Store]= "C" &amp;amp;&amp;amp; ‘Table’[Sales Date]&amp;gt;TODAY(), “C”,

IF('Table'[Store]= "D" &amp;amp;&amp;amp; ‘Table’[Sales Date]&amp;gt;TODAY(), “D”,” ”)
)))))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or use switch() function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;New_Column = 
switch(true(),
'Table'[Store]= "A", "A",
'Table'[Store]= "B", "B",
'Table'[Store]= "C" &amp;amp;&amp;amp; ‘Table’[Sales Date]&amp;lt;=TODAY(), “B”,
'Table'[Store]= "D" &amp;amp;&amp;amp; ‘Table’[Sales Date]&amp;lt;=TODAY(), “B”,
'Table'[Store]= "C" &amp;amp;&amp;amp; ‘Table’[Sales Date]&amp;gt;TODAY(), “C”,
'Table'[Store]= "D" &amp;amp;&amp;amp; ‘Table’[Sales Date]&amp;gt;TODAY(), “D”,” ”
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 15:56:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MUltiple-IF-and-statements/m-p/3591023#M138639</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-12-19T15:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: MUltiple IF and statements</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MUltiple-IF-and-statements/m-p/3591573#M138685</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 14:43:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MUltiple-IF-and-statements/m-p/3591573#M138685</guid>
      <dc:creator>Jay2022</dc:creator>
      <dc:date>2023-12-19T14:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: MUltiple IF and statements</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MUltiple-IF-and-statements/m-p/3591803#M138691</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="392269" data-lia-user-login="Jay2022" class="lia-mention lia-mention-user"&gt;Jay2022&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 16:06:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MUltiple-IF-and-statements/m-p/3591803#M138691</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-12-19T16:06:02Z</dc:date>
    </item>
  </channel>
</rss>

