<?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: Default message to be written when all records are selected in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-message-to-be-written-when-all-records-are-selected/m-p/1841842#M39300</link>
    <description>&lt;P&gt;Thanks Greg. I will make changes and update here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 May 2021 02:47:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-05-14T02:47:18Z</dc:date>
    <item>
      <title>Default message to be written when all records are selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-message-to-be-written-when-all-records-are-selected/m-p/1841738#M39295</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A slight modification is required to the below DAX measure. It is working fine but I need to include a default message when all the packages (category) are selected.&amp;nbsp; I tried but its not working at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On default all categories are selected in a slicer at that time its so messy as showing all values. I need to show a message " All values selected" to the below DAX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Packages selected = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF(ISBLANK(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONCATENATEX(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VALUES(Package_To_Include[Package]),Package_To_Include[Package], ", ")),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;BLANK()," Packages selected are " &amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONCATENATEX(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VALUES(Package_To_Include[Package]), Package_To_Include[Package], ","))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Solution taken from:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Text-field-to-show-the-selected-filter/m-p/384325/highlight/true#M174966" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Desktop/Text-field-to-show-the-selected-filter/m-p/384325/highlight/true#M174966&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Karthik&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 May 2021 01:54:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-message-to-be-written-when-all-records-are-selected/m-p/1841738#M39295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-14T01:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Default message to be written when all records are selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-message-to-be-written-when-all-records-are-selected/m-p/1841813#M39297</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;If I remember correctly from&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Most-Amazing-Mind-Blowing-Dynamic-Slicer-Title-Measure-Ever/td-p/429587" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Most-Amazing-Mind-Blowing-Dynamic-Slicer-Title-Measure-Ever/td-p/429587&lt;/A&gt;. What I did was do a COUNTROWS('Table') and compare it with a COUNTROWS(ALL('Table')). If the 2 values are equal, then everything is selected. Might also be able to do a IF(NOT(ISFILTERED())...)&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 02:31:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-message-to-be-written-when-all-records-are-selected/m-p/1841813#M39297</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-05-14T02:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Default message to be written when all records are selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-message-to-be-written-when-all-records-are-selected/m-p/1841830#M39298</link>
      <description>&lt;P&gt;Wow&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;This is what I was actually looking for. Is it possible for you to share the formula you used over here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I like the way how you are saying&lt;STRONG&gt; " You have filtered over B1, B2, B3 and 4 more brands"&lt;/STRONG&gt;. I will also add a similar style in mine. Have you displayed that via card visual?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 02:42:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-message-to-be-written-when-all-records-are-selected/m-p/1841830#M39298</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-14T02:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Default message to be written when all records are selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-message-to-be-written-when-all-records-are-selected/m-p/1841835#M39299</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;You can download the PBIX from the solution at the bottom of the Quick Measure Gallery entry. Has all the formulas, etc. If you scroll down the entire formula is listed, here is the relevant snippet (below). And yes on the Card visual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VAR __TOTAL_ROWS = COUNTROWS(DISTINCT(ALL('Table'[Brand])))
VAR __CURRENT_ROWS = COUNTROWS(DISTINCT('Table'[Brand]))
VAR __MAINTEXT = 
    IF(
        __USEPERCENT,
        VAR __PERCENT = DIVIDE(__CURRENT_ROWS,__TOTAL_ROWS,0)
        RETURN IF(ISBLANK(__PERCENT),__PERCENTZEROTEXT &amp;amp; __PERCENTTEXT,FORMAT(__PERCENT,"Percent") &amp;amp; __PERCENTTEXT),
        SWITCH(
            TRUE(),
            __CURRENT_ROWS = __TOTAL_ROWS,__ALLTEXT,
            __CURRENT_ROWS = 0,__NONETEXT,&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 02:46:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-message-to-be-written-when-all-records-are-selected/m-p/1841835#M39299</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-05-14T02:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Default message to be written when all records are selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-message-to-be-written-when-all-records-are-selected/m-p/1841842#M39300</link>
      <description>&lt;P&gt;Thanks Greg. I will make changes and update here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 02:47:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Default-message-to-be-written-when-all-records-are-selected/m-p/1841842#M39300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-14T02:47:18Z</dc:date>
    </item>
  </channel>
</rss>

