<?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: Adding conditions to an IF statement for blanks in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-conditions-to-an-IF-statement-for-blanks/m-p/3064569#M106056</link>
    <description>&lt;P&gt;Figured this out with the help of another user. Thanks for all of the help!&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 19:10:05 GMT</pubDate>
    <dc:creator>ld17</dc:creator>
    <dc:date>2023-02-06T19:10:05Z</dc:date>
    <item>
      <title>Adding conditions to an IF statement for blanks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-conditions-to-an-IF-statement-for-blanks/m-p/3060424#M105724</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a matrix to show completion dates for trainings for users. On the advice of a solution in this forum, I have cross joined tables and used a DAX formula so that if a cell shows "blank," it means that they were not assigned it. However, my issue is that I need to set a few additional conditions for this, as a blank can also mean a few other things: if a user currently has a training "in progress" or is "registered" but not started.&amp;nbsp; Therefore, I would like the blanks to be transformed to these respective values when this is the case. I believe I just need to add a few extra conditions to my IF statement, but I cannot figure out how, given that I am not a DAX expoert. The screenshots below show my codes, the column I would like to reference, and the table I am trying to use to achieve this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Table = &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CROSSJOIN&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Site Services Training Matrix'&lt;/SPAN&gt;&lt;SPAN&gt;[User - User Full Name]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Site Services Training Matrix'&lt;/SPAN&gt;&lt;SPAN&gt;[Training - Training Title]&lt;/SPAN&gt;&lt;SPAN&gt; ))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN&gt;Completion Date = &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;vResult&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CONVERT&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Site Services Training Matrix'&lt;/SPAN&gt;&lt;SPAN&gt;[Transcript - Transcript Completed Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Site Services Training Matrix'&lt;/SPAN&gt;&lt;SPAN&gt;[User - User Full Name]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[User - User Full Name]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Site Services Training Matrix'&lt;/SPAN&gt;&lt;SPAN&gt;[Training - Training Title]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Training - Training Title]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;STRING&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;vResult&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;"Not Assigned"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;vResult&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 14:17:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-conditions-to-an-IF-statement-for-blanks/m-p/3060424#M105724</guid>
      <dc:creator>ld17</dc:creator>
      <dc:date>2023-02-03T14:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Adding conditions to an IF statement for blanks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-conditions-to-an-IF-statement-for-blanks/m-p/3060465#M105725</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="405324" data-lia-user-login="ld17" class="lia-mention lia-mention-user"&gt;ld17&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is your question or expectation?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 14:36:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-conditions-to-an-IF-statement-for-blanks/m-p/3060465#M105725</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-03T14:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding conditions to an IF statement for blanks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-conditions-to-an-IF-statement-for-blanks/m-p/3060530#M105733</link>
      <description>&lt;P&gt;I am wondering how I can add the conditions "in progress" or "registered" to the IF ISBLANK statement below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;vResult&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;"Not Assigned"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;vResult&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I only want the cell to display "not assigned' if the user didn't receive the training at all. Otherwise, I need it the cell to read "in progress" or "not started," but I cannot figure out how to write this DAX. It should read from this column:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, the DAX formula is transforming all blanks as shown below, but some cells need to read "in proress" or "not started."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 15:02:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-conditions-to-an-IF-statement-for-blanks/m-p/3060530#M105733</guid>
      <dc:creator>ld17</dc:creator>
      <dc:date>2023-02-03T15:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding conditions to an IF statement for blanks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-conditions-to-an-IF-statement-for-blanks/m-p/3060560#M105735</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="405324" data-lia-user-login="ld17" class="lia-mention lia-mention-user"&gt;ld17&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;change to&amp;nbsp; something like this:&lt;/P&gt;&lt;P&gt;IF ( vResult IN {BLANK(), "in progress", "registered"}, "Not Assigned", vResult)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 15:13:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-conditions-to-an-IF-statement-for-blanks/m-p/3060560#M105735</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-03T15:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding conditions to an IF statement for blanks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-conditions-to-an-IF-statement-for-blanks/m-p/3063994#M106020</link>
      <description>&lt;P&gt;Thank you for the response! I tried to add that to my DAX expression, but it did not seem to pull in all the statuses. It seems to only want to give me two:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess my issue that I need to reference both of the below highlighted columns in one DAX expression. If a person has completed the training, I want the date to display in the cell of that user's name in my visualization. Otherwise, I would like "in progress," "in progress/past due," or "registered," to display in the cell. But since the date comes from one column (transcript-transcript completed date), and the status comes from a different column ((transcript-transcript status), I am not sure what DAX expression to write to include both.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After some tweaks, I have found that this DAX expression will produce the status, but removes the date since the date is in a separate column:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;Completion Date = &lt;/SPAN&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;vResult&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CONVERT&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Site Services Training Matrix'&lt;/SPAN&gt;&lt;SPAN&gt;[Transcript - Transcript Status]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Site Services Training Matrix'&lt;/SPAN&gt;&lt;SPAN&gt;[User - User Full Name]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[User - User Full Name]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'Site Services Training Matrix'&lt;/SPAN&gt;&lt;SPAN&gt;[Training - Training Title]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;[Training - Training Title]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;STRING&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;vResult&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;"Not Assigned"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;vResult&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this, the original I was working with, shows the date and "not assigned," but I cannot figure out how to get it to grab the other statues ("in progress, "in progress / past due," "or registered," since they are in a different column:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#000000"&gt;Completion Date = VAR vResult =&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; CONVERT (&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOOKUPVALUE (&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Site Services Training Matrix'[Transcript - Transcript Completed Date],&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Site Services Training Matrix'[User - User Full Name], 'Table'[User - User Full Name],&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Site Services Training Matrix'[Training - Training Title], 'Table'[Training - Training Title]&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ),&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; STRING&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; )&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;RETURN&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; IF ( ISBLANK ( vResult ), "Not Assigned", vResult)&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 14:12:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-conditions-to-an-IF-statement-for-blanks/m-p/3063994#M106020</guid>
      <dc:creator>ld17</dc:creator>
      <dc:date>2023-02-06T14:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding conditions to an IF statement for blanks</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-conditions-to-an-IF-statement-for-blanks/m-p/3064569#M106056</link>
      <description>&lt;P&gt;Figured this out with the help of another user. Thanks for all of the help!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 19:10:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Adding-conditions-to-an-IF-statement-for-blanks/m-p/3064569#M106056</guid>
      <dc:creator>ld17</dc:creator>
      <dc:date>2023-02-06T19:10:05Z</dc:date>
    </item>
  </channel>
</rss>

