<?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 value is x then a and if value is y then b in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-value-is-x-then-a-and-if-value-is-y-then-b/m-p/945313#M10280</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="181415" data-lia-user-login="einrikr" class="lia-mention lia-mention-user"&gt;einrikr&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am going to assume that you want to evaluate everything on the same row. I would create a new calculated column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Deadline = if([ColumnNameAuditorRegulatory]="Audit",[valididation deadline audit],[validatation deadline regulatory])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2020 14:51:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-24T14:51:19Z</dc:date>
    <item>
      <title>IF value is x then a and if value is y then b</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-value-is-x-then-a-and-if-value-is-y-then-b/m-p/945290#M10276</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I'm massively overcomplicating my problem but as I'm quite new to DAX, I'd love to learn what I'm doing wrong.&lt;/P&gt;&lt;P&gt;I want to do something presumably extremely basic, but can't fathom how to do it...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My report has a column with 2 possible values: audit, or regulatory. Based on these values, I want to retreive values in other columns. If the value is 'audit', I want to retreive the deadline for testing purposes, stored in column 'validation deadline audit'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the valuw is 'regulatory', I want to retreive the deadline in column 'validation deadline regulatory'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems pretty simple to do but I don't get what I'm supposed to be using. Can anyone of you help please?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 14:45:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-value-is-x-then-a-and-if-value-is-y-then-b/m-p/945290#M10276</guid>
      <dc:creator>einrikr</dc:creator>
      <dc:date>2020-02-24T14:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: IF value is x then a and if value is y then b</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-value-is-x-then-a-and-if-value-is-y-then-b/m-p/945300#M10278</link>
      <description>Show the data model. We need to know how your tables are linked.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Mon, 24 Feb 2020 14:47:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-value-is-x-then-a-and-if-value-is-y-then-b/m-p/945300#M10278</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-24T14:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: IF value is x then a and if value is y then b</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-value-is-x-then-a-and-if-value-is-y-then-b/m-p/945313#M10280</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="181415" data-lia-user-login="einrikr" class="lia-mention lia-mention-user"&gt;einrikr&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am going to assume that you want to evaluate everything on the same row. I would create a new calculated column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Deadline = if([ColumnNameAuditorRegulatory]="Audit",[valididation deadline audit],[validatation deadline regulatory])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Paul&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 14:51:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-value-is-x-then-a-and-if-value-is-y-then-b/m-p/945313#M10280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-24T14:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: IF value is x then a and if value is y then b</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-value-is-x-then-a-and-if-value-is-y-then-b/m-p/945332#M10283</link>
      <description>&lt;P&gt;Thanks for your reply Anonymous&lt;/a&gt;&amp;nbsp;darlove, see below.&lt;/P&gt;&lt;P&gt;It's all in one table, but somehow I still don't get what I should do...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 14:59:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-value-is-x-then-a-and-if-value-is-y-then-b/m-p/945332#M10283</guid>
      <dc:creator>einrikr</dc:creator>
      <dc:date>2020-02-24T14:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: IF value is x then a and if value is y then b</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-value-is-x-then-a-and-if-value-is-y-then-b/m-p/945346#M10287</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="181415" data-lia-user-login="einrikr" class="lia-mention lia-mention-user"&gt;einrikr&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it's all in one table, you can definitely use my formula above.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 15:08:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-value-is-x-then-a-and-if-value-is-y-then-b/m-p/945346#M10287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-24T15:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: IF value is x then a and if value is y then b</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-value-is-x-then-a-and-if-value-is-y-then-b/m-p/945389#M10294</link>
      <description>&lt;P&gt;It certainly did, thank you very much!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expected that I would have to specify 'if value is x, then a or and if value is y, then b' but that's not the case &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 15:27:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-value-is-x-then-a-and-if-value-is-y-then-b/m-p/945389#M10294</guid>
      <dc:creator>einrikr</dc:creator>
      <dc:date>2020-02-24T15:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: IF value is x then a and if value is y then b</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-value-is-x-then-a-and-if-value-is-y-then-b/m-p/945481#M10311</link>
      <description>&lt;P&gt;Awesome. Glad it worked. But yes, the format for if statements are if(evaluation, result if true, result if false).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you're using a switch function (for handling multiple ifs, then you'd have to specify the various values)...&lt;/P&gt;&lt;P&gt;switch([values],"Audit",[auditdatecolumn],"Value2",[value2datecolumn],"Value3",[value3datecolumn],"Alternate Value")&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 16:05:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-value-is-x-then-a-and-if-value-is-y-then-b/m-p/945481#M10311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-24T16:05:41Z</dc:date>
    </item>
  </channel>
</rss>

