<?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: Remove blank when Parameter is selected in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-blank-when-Parameter-is-selected/m-p/4358431#M173022</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="760814" data-lia-user-login="non23" class="lia-mention lia-mention-user"&gt;non23&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the following mesuare:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ShowRows = 
VAR SelectedField = SELECTEDVALUE(Parameter[Parameter Fields]) 
RETURN
SWITCH(
    TRUE(),
    SelectedField = NAMEOF('MainTable'[Approver]) &amp;amp;&amp;amp; SELECTEDVALUE('MainTable'[Approver]) = "Blank", 0,
    SelectedField = NAMEOF('MainTable'[Rejected by]) &amp;amp;&amp;amp; SELECTEDVALUE('MainTable'[Rejected by]) = "Blank", 0,
    SelectedField = NAMEOF('MainTable'[Created by]) &amp;amp;&amp;amp; SELECTEDVALUE('MainTable'[Created by]) = "Blank", 0,
    1
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Then filter the visual with ShowRows=1 to remove Blank value:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Result for your reference:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Joyce&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2025 08:23:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-01-10T08:23:39Z</dc:date>
    <item>
      <title>Remove blank when Parameter is selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-blank-when-Parameter-is-selected/m-p/4357921#M172997</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need your wisdom with a matrix visualization where I have used a parameter to control the rows, allowing users to select their desired view. My goal is to hide rows that contain "Blank Approver" values when Approver Parameter is selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here’s the issue:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The "Blank Approver" rows represent rejected items, which should not be displayed if the user selects an "Approved" type.&lt;/LI&gt;&lt;LI&gt;The challenge is that the "Blank Approver" rows should not be shown regardless of the selected type (Approved or Rejected) when the parameter is applied.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have attached an image to illustrate how the matrix should look when both the parameter and type are selected (as an ideal scenario). Is there a way to achieve this behavior where the "Blank Approver" rows are completely hidden when only the parameter is selected?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Parameter selected&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;STRONG&gt;Parameter and Type is selected&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 22:43:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-blank-when-Parameter-is-selected/m-p/4357921#M172997</guid>
      <dc:creator>non23</dc:creator>
      <dc:date>2025-01-09T22:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Remove blank when Parameter is selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-blank-when-Parameter-is-selected/m-p/4358019#M173001</link>
      <description>&lt;P&gt;I have managed to find a partial solution by following this &lt;A href="https://stackoverflow.com/questions/75161718/power-bi-field-parameter-how-to-dynamically-exclude-nulls" target="_self"&gt;link.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Unfortunately, I'm having issues with the Total as it's giving total of everything instead of the displayed values only.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any help on the total issue would be appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 01:59:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-blank-when-Parameter-is-selected/m-p/4358019#M173001</guid>
      <dc:creator>non23</dc:creator>
      <dc:date>2025-01-10T01:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Remove blank when Parameter is selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-blank-when-Parameter-is-selected/m-p/4358431#M173022</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="760814" data-lia-user-login="non23" class="lia-mention lia-mention-user"&gt;non23&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the following mesuare:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ShowRows = 
VAR SelectedField = SELECTEDVALUE(Parameter[Parameter Fields]) 
RETURN
SWITCH(
    TRUE(),
    SelectedField = NAMEOF('MainTable'[Approver]) &amp;amp;&amp;amp; SELECTEDVALUE('MainTable'[Approver]) = "Blank", 0,
    SelectedField = NAMEOF('MainTable'[Rejected by]) &amp;amp;&amp;amp; SELECTEDVALUE('MainTable'[Rejected by]) = "Blank", 0,
    SelectedField = NAMEOF('MainTable'[Created by]) &amp;amp;&amp;amp; SELECTEDVALUE('MainTable'[Created by]) = "Blank", 0,
    1
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Then filter the visual with ShowRows=1 to remove Blank value:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Result for your reference:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Joyce&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 08:23:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-blank-when-Parameter-is-selected/m-p/4358431#M173022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-10T08:23:39Z</dc:date>
    </item>
  </channel>
</rss>

