<?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: Removing blanks from a defined variable in DAX/Power Query in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Removing-blanks-from-a-defined-variable-in-DAX-Power-Query/m-p/4307500#M171061</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="874396" data-lia-user-login="mgils24" class="lia-mention lia-mention-user"&gt;mgils24&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The issue likely arises because FILTER expects a table and you're passing a column expression. By wrapping the column in FILTER directly within the RETURN statement, this will resolve the problem&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;BridgeSO =&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;VAR MWSO = VALUES(mn_rcp[ServiceOrderNumber])&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;VAR PUSO = VALUES('Parts Usage frequency report + Raw data'[Service Order])&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;VAR CombinedSO = UNION(MWSO, PUSO)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;VAR CombinedSO2 = DISTINCT(CombinedSO)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;RETURN&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;FILTER(CombinedSO2, NOT(ISBLANK(CombinedSO2)))&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; are much appreciated!&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Dharmendar S&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/dharmendar-s-b5b43463/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIN&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Nov 2024 11:16:43 GMT</pubDate>
    <dc:creator>dharmendars007</dc:creator>
    <dc:date>2024-11-29T11:16:43Z</dc:date>
    <item>
      <title>Removing blanks from a defined variable in DAX/Power Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Removing-blanks-from-a-defined-variable-in-DAX-Power-Query/m-p/4307485#M171059</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is driving me crazy. In my calculated table I want to remove the rows which contain a blank. A very simple task but I can't get it working. Any help is appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I combine to columns and filter out the duplicates. This works fine but the column contains still 1 blank which I want to get rid off. The code looks very simple. As example I tried FILTER which doesn't work.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 11:07:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Removing-blanks-from-a-defined-variable-in-DAX-Power-Query/m-p/4307485#M171059</guid>
      <dc:creator>mgils24</dc:creator>
      <dc:date>2024-11-29T11:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Removing blanks from a defined variable in DAX/Power Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Removing-blanks-from-a-defined-variable-in-DAX-Power-Query/m-p/4307499#M171060</link>
      <description>&lt;P&gt;You can use&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Bridge SO =
VAR MNSO =
    FILTER (
        DISTINCT ( mn_rcpl[ServiceOrderNumber] ),
        NOT ISBLANK ( mn_rcpl[ServiceOrderNumber] )
    )
VAR PUSO =
    FILTER (
        DISTINCT ( 'Parts Usage Frequency Report - Raw Data'[Service Order] ),
        NOT ISBLANK ( 'Parts Usage Frequency Report - Raw Data'[Service Order] )
    )
VAR CombinedSO =
    DISTINCT ( UNION ( MNSO, PUSO ) )
RETURN
    CombinedSO
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 29 Nov 2024 11:16:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Removing-blanks-from-a-defined-variable-in-DAX-Power-Query/m-p/4307499#M171060</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2024-11-29T11:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Removing blanks from a defined variable in DAX/Power Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Removing-blanks-from-a-defined-variable-in-DAX-Power-Query/m-p/4307500#M171061</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="874396" data-lia-user-login="mgils24" class="lia-mention lia-mention-user"&gt;mgils24&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The issue likely arises because FILTER expects a table and you're passing a column expression. By wrapping the column in FILTER directly within the RETURN statement, this will resolve the problem&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;BridgeSO =&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;VAR MWSO = VALUES(mn_rcp[ServiceOrderNumber])&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;VAR PUSO = VALUES('Parts Usage frequency report + Raw data'[Service Order])&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;VAR CombinedSO = UNION(MWSO, PUSO)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;VAR CombinedSO2 = DISTINCT(CombinedSO)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;RETURN&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;FILTER(CombinedSO2, NOT(ISBLANK(CombinedSO2)))&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; are much appreciated!&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Dharmendar S&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/dharmendar-s-b5b43463/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIN&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 11:16:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Removing-blanks-from-a-defined-variable-in-DAX-Power-Query/m-p/4307500#M171061</guid>
      <dc:creator>dharmendars007</dc:creator>
      <dc:date>2024-11-29T11:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Removing blanks from a defined variable in DAX/Power Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Removing-blanks-from-a-defined-variable-in-DAX-Power-Query/m-p/4307554#M171066</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;! This works.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 12:11:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Removing-blanks-from-a-defined-variable-in-DAX-Power-Query/m-p/4307554#M171066</guid>
      <dc:creator>mgils24</dc:creator>
      <dc:date>2024-11-29T12:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Removing blanks from a defined variable in DAX/Power Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Removing-blanks-from-a-defined-variable-in-DAX-Power-Query/m-p/4307816#M171079</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="874396" data-lia-user-login="mgils24" class="lia-mention lia-mention-user"&gt;mgils24&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you try to replace both VALUES with DISTINCT? Will it also get what you expect?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 15:06:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Removing-blanks-from-a-defined-variable-in-DAX-Power-Query/m-p/4307816#M171079</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2024-11-29T15:06:52Z</dc:date>
    </item>
  </channel>
</rss>

