<?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 How to replace blanks with a different value when connecting to a table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-blanks-with-a-different-value-when-connecting-to/m-p/4202168#M166704</link>
    <description>&lt;P&gt;I have an excel file that lists various companies and a category they fall into ... IE Company A is Elite, Company B is Value, etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two other tables with data that include a company code field, that links to the same code in that Excel file.&amp;nbsp; However, the issue I am having is there are a lot of company codes that are not in the excel file.&amp;nbsp; &amp;nbsp;Currently, Power BI is returning blank for those.&amp;nbsp; &amp;nbsp;Ideally, I would like it to return 'Other' ...is there an easy way to do this?&amp;nbsp; I can't add all company codes to the Excel file and create 'Other' in the category column because new codes are added every day&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2024 17:51:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-09-30T17:51:12Z</dc:date>
    <item>
      <title>How to replace blanks with a different value when connecting to a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-blanks-with-a-different-value-when-connecting-to/m-p/4202168#M166704</link>
      <description>&lt;P&gt;I have an excel file that lists various companies and a category they fall into ... IE Company A is Elite, Company B is Value, etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two other tables with data that include a company code field, that links to the same code in that Excel file.&amp;nbsp; However, the issue I am having is there are a lot of company codes that are not in the excel file.&amp;nbsp; &amp;nbsp;Currently, Power BI is returning blank for those.&amp;nbsp; &amp;nbsp;Ideally, I would like it to return 'Other' ...is there an easy way to do this?&amp;nbsp; I can't add all company codes to the Excel file and create 'Other' in the category column because new codes are added every day&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 17:51:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-blanks-with-a-different-value-when-connecting-to/m-p/4202168#M166704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-30T17:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace blanks with a different value when connecting to a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-blanks-with-a-different-value-when-connecting-to/m-p/4202220#M166707</link>
      <description>&lt;P&gt;COALESCE([column],"Other")&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 18:07:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-blanks-with-a-different-value-when-connecting-to/m-p/4202220#M166707</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-09-30T18:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace blanks with a different value when connecting to a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-blanks-with-a-different-value-when-connecting-to/m-p/4202417#M166722</link>
      <description>&lt;P&gt;I couldn't quite get that to work...where should I be adding that measure?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 19:02:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-blanks-with-a-different-value-when-connecting-to/m-p/4202417#M166722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-30T19:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace blanks with a different value when connecting to a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-blanks-with-a-different-value-when-connecting-to/m-p/4202455#M166723</link>
      <description>&lt;P&gt;does it have to be a measure? A calculated column is likely enough.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 19:12:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-blanks-with-a-different-value-when-connecting-to/m-p/4202455#M166723</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-09-30T19:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace blanks with a different value when connecting to a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-blanks-with-a-different-value-when-connecting-to/m-p/4202570#M166724</link>
      <description>&lt;P&gt;it doesn't have to be a measure, but where would I put the calculated column?&amp;nbsp; would i have to add it to both tables that are joined to the Excel file?&amp;nbsp; I already have that field in there, but I would like to have a filter tie to both tables&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 19:49:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-blanks-with-a-different-value-when-connecting-to/m-p/4202570#M166724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-30T19:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace blanks with a different value when connecting to a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-blanks-with-a-different-value-when-connecting-to/m-p/4208611#M166856</link>
      <description>&lt;P&gt;Assuming that Table1 is your Excel file, and Table2 contains the codes (ID) that are not present in Table1, you can add a calculated column to Table2:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID_clean =&lt;BR /&gt;IF(&lt;BR /&gt;ISBLANK(&lt;BR /&gt;LOOKUPVALUE(&lt;BR /&gt;Table1[ID],&lt;BR /&gt;Table1[ID],&lt;BR /&gt;Table2[ID]&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;"Other",&amp;nbsp;&lt;BR /&gt;FORMAT(Table2[ID], "General Number")&amp;nbsp;&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 13:27:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-blanks-with-a-different-value-when-connecting-to/m-p/4208611#M166856</guid>
      <dc:creator>AnnieTay</dc:creator>
      <dc:date>2024-10-01T13:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace blanks with a different value when connecting to a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-blanks-with-a-different-value-when-connecting-to/m-p/4232992#M167410</link>
      <description>&lt;P&gt;Thanks for the reply from&amp;nbsp;lbendlin&amp;nbsp;and&amp;nbsp;AnnieTay.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you solved your problem? Based on my testing, the code provided by AnnieTay&amp;nbsp;does what you need:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;This is the relationship I created:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use the RELATED function, which does the same thing and doesn't need to have the fields in the Table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = IF(ISBLANK(RELATED('Table'[Category])),"Other",RELATED('Table'[Category]))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Zhu&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If there is any post&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;I&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;I&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;I&gt;&lt;STRONG&gt;Thanks a lot!&lt;/STRONG&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 06:19:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-replace-blanks-with-a-different-value-when-connecting-to/m-p/4232992#M167410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-08T06:19:31Z</dc:date>
    </item>
  </channel>
</rss>

