<?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: How to modify this to show all values when filter selects ALL (Part 2) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-this-to-show-all-values-when-filter-selects-ALL/m-p/4345695#M172576</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="685422" data-lia-user-login="tharunkumarRTK" class="lia-mention lia-mention-user"&gt;tharunkumarRTK&lt;/a&gt;&amp;nbsp;Thank you so much for your help. I am just curious why those extra IF conditions were there at the first place. I am just trying to figure our the logic.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2024 02:05:45 GMT</pubDate>
    <dc:creator>JustinDoh1</dc:creator>
    <dc:date>2024-12-30T02:05:45Z</dc:date>
    <item>
      <title>How to modify this to show all values when filter selects ALL (Part 2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-this-to-show-all-values-when-filter-selects-ALL/m-p/4345285#M172551</link>
      <description>&lt;P&gt;I have posted this question about a week ago, and I thought my manager said "it is good" back then, but yesterday I heard that I need to come up with a solution as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1ibGZzGYVh8BJ7RniAN7RfO5CR5aDcoV1/view?usp=sharing" target="_self"&gt;Here is my latest PBIX file&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, now bottom is &lt;STRONG&gt;requirement&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-this-to-show-all-values-when-filter-selects-ALL/m-p/4337571" target="_self"&gt;This is my&amp;nbsp;previous post&lt;/A&gt; , and with following DAX code, I thought it would satisify the requirement from my manager:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ALI1 = 
IF (
    ISFILTERED ( 'Z-Table'[Location] ),
    IF (
        CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "ALI" ),
        "ALI",
        ""
    ),
    ""
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FILTER = 
IF (
    ISFILTERED ( 'Z-Table'[Location] ),
    IF ( MAX ( 'tblScore'[Location] ) IN VALUES ( 'Z-Table'[Location] ), 1, 0 ),
    0
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, current DAX works if user selects each selection one by one, but not when selected "Select all".&lt;/P&gt;&lt;P&gt;So, I want those characters ("ALI", "ARB" &amp;amp; "AVI") show up when selected individually as well as selected "Select all".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Dec 2024 23:47:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-this-to-show-all-values-when-filter-selects-ALL/m-p/4345285#M172551</guid>
      <dc:creator>JustinDoh1</dc:creator>
      <dc:date>2024-12-28T23:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify this to show all values when filter selects ALL (Part 2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-this-to-show-all-values-when-filter-selects-ALL/m-p/4345318#M172554</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="296339" data-lia-user-login="JustinDoh1" class="lia-mention lia-mention-user"&gt;JustinDoh1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You just need to remove the ISFILTERED condition.&amp;nbsp;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ALI1 = 

    IF (
        CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "ALI" ),
        "ALI",
        ""
    ) 



ARB1 = 

    IF (
        CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "ARB" ),
        "ARB",
        ""
    )




AVI1 = 

    IF (
        CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "AVI" ),
        "AVI",
        ""
    ) 



FILTER = 

    IF ( MAX ( 'tblScore'[Location] ) IN VALUES ( 'Z-Table'[Location] ), 1, 0 ) 
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the table visual to show up all the characters if "select all" selected then remove the isfiltered condition. Else keep it as is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need a Power BI Consultation? Hire me on &lt;A href="https://bit.ly/4d3oy4s" target="_blank" rel="noopener"&gt;Upwork&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Connect on &lt;A href="https://www.linkedin.com/in/tharun-kumar-ravikrindhi/" target="_blank" rel="noopener"&gt;LinkedIn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class=""&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class=""&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV style="border-radius: 1px; padding: 10px; border: solid #cccccc 1px; background: #fafafa no-repeat right 10px center;"&gt;&lt;BR /&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG style="margin-right: 3px;"&gt;&lt;STRONG style="margin-right: 3px;"&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG style="margin-right: 3px;"&gt;&lt;STRONG style="margin-right: 3px;"&gt;If I helped you, click on the Thumbs Up to give Kudos.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;BR /&gt;
&lt;P style="padding: 0; margin: 5px 50px 0 0;"&gt;Proud to be a Super User!&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 29 Dec 2024 03:38:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-this-to-show-all-values-when-filter-selects-ALL/m-p/4345318#M172554</guid>
      <dc:creator>tharunkumarRTK</dc:creator>
      <dc:date>2024-12-29T03:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify this to show all values when filter selects ALL (Part 2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-this-to-show-all-values-when-filter-selects-ALL/m-p/4345361#M172558</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="296339" data-lia-user-login="JustinDoh1" class="lia-mention lia-mention-user"&gt;JustinDoh1&lt;/a&gt;&amp;nbsp;, When "Select All" is selected, it doesn't actually apply a filter. Instead, it removes all filters, which can make it seem like no specific value is selected. ISFILTERED()&amp;nbsp;function returns FALSE when "Select All" is used because technically, no filter is applied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, I would like to suggest you to create a new column in Z-Table named "SelectAll". See image below:&lt;BR /&gt;&lt;/SPAN&gt;&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;This is for hirarchy. Now create a slicer with the hirarchy. See image below:&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;&lt;P&gt;Now update the measures, you have created earlier with the following codes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ALI1 = 
IF(
    NOT ISFILTERED('Z-Table'[SelectAll]),
    "",
    IF (
        SELECTEDVALUE('Z-Table'[SelectAll]) = "Select All" &amp;amp;&amp;amp; SELECTEDVALUE('Z-Table'[Location]) = "ALI",
        "ALI"
        ,
        IF(
            SELECTEDVALUE('Z-Table'[SelectAll]) = "Select All" &amp;amp;&amp;amp; CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "ALI" ),
            "ALI",
            ""
        )
    )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;ARB1 = 
IF(
    NOT ISFILTERED('Z-Table'[SelectAll]),
    "",
    IF (
        SELECTEDVALUE('Z-Table'[SelectAll]) = "Select All" &amp;amp;&amp;amp; SELECTEDVALUE('Z-Table'[Location]) = "ARB" ,
        "ARB"
        ,
        IF(
            SELECTEDVALUE('Z-Table'[SelectAll]) = "Select All" &amp;amp;&amp;amp; CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "ARB" ),
            "ARB",
            ""
        )
    )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;AVI1 = 
IF(
    NOT ISFILTERED('Z-Table'[SelectAll]),
    "",
    IF (
        SELECTEDVALUE('Z-Table'[SelectAll]) = "Select All" &amp;amp;&amp;amp; SELECTEDVALUE('Z-Table'[Location]) = "AVI",
        "AVI"
        ,
        IF(
            SELECTEDVALUE('Z-Table'[SelectAll]) = "Select All" &amp;amp;&amp;amp; CONTAINSSTRING ( CONCATENATEX ( 'Z-Table', 'Z-Table'[Location], "," ), "AVI" ),
            "AVI",
            ""
        )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FILTER = 
IF (
    NOT ISFILTERED('Z-Table'[Location]),
    IF(MAX('tblScore'[Location]) IN VALUES('Z-Table'[Location]), 1, 0),
    IF (
        SELECTEDVALUE('Z-Table'[SelectAll]) = "Select All",
        IF (
            MAX('tblScore'[Location]) IN VALUES('Z-Table'[Location]), 
            1, 
            0
        ),
        0
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you are done. Check the outputs below, for your understanding:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. When no selection:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. When single selections:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. When 'Select All' is selected :&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;&lt;P&gt;Hope this helps!!&lt;/P&gt;&lt;P&gt;If this solved your problem, please accept it as a solution and kudos!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Shahariar Hafiz&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2024 06:12:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-this-to-show-all-values-when-filter-selects-ALL/m-p/4345361#M172558</guid>
      <dc:creator>shafiz_p</dc:creator>
      <dc:date>2024-12-29T06:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify this to show all values when filter selects ALL (Part 2)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-this-to-show-all-values-when-filter-selects-ALL/m-p/4345695#M172576</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="685422" data-lia-user-login="tharunkumarRTK" class="lia-mention lia-mention-user"&gt;tharunkumarRTK&lt;/a&gt;&amp;nbsp;Thank you so much for your help. I am just curious why those extra IF conditions were there at the first place. I am just trying to figure our the logic.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 02:05:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-modify-this-to-show-all-values-when-filter-selects-ALL/m-p/4345695#M172576</guid>
      <dc:creator>JustinDoh1</dc:creator>
      <dc:date>2024-12-30T02:05:45Z</dc:date>
    </item>
  </channel>
</rss>

