<?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: Set Default value of a visual affected by a slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3733084#M145489</link>
    <description>&lt;P&gt;Thanks a lot for your continuous help,&lt;/P&gt;&lt;P&gt;It works fine when nothing is selected, but once I select any vendor, it doesn't do the job of mentioning the material name:&lt;/P&gt;&lt;P&gt;Here I am not selecting any, "all", and it's working fine.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here: I started selecting:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Feb 2024 09:19:27 GMT</pubDate>
    <dc:creator>AdelNawar</dc:creator>
    <dc:date>2024-02-29T09:19:27Z</dc:date>
    <item>
      <title>Set Default value of a visual affected by a slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3732635#M145466</link>
      <description>&lt;P&gt;I have a list of vendors, each with a list of materials,&lt;/P&gt;&lt;P&gt;When I select a certain vendor, then select a material, it's name will appear in the card.&lt;/P&gt;&lt;P&gt;Without selection, it displays the name of the first material in all list "alphabetical order".&lt;/P&gt;&lt;P&gt;What I want to do is: make the default value, before selection, a text like: Awaiting selection, or whatever.&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 07:08:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3732635#M145466</guid>
      <dc:creator>AdelNawar</dc:creator>
      <dc:date>2024-02-29T07:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Set Default value of a visual affected by a slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3732993#M145482</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DP = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; DP_Ven = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Vendor])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; DP_Mat = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Matrial])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; result = &lt;/SPAN&gt;&lt;SPAN&gt;CONCATENATE&lt;/SPAN&gt;&lt;SPAN&gt;(DP_Ven,&lt;/SPAN&gt;&lt;SPAN&gt;CONCATENATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"|"&lt;/SPAN&gt;&lt;SPAN&gt;,DP_Mat))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(DP_Ven = &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;() || DP_Ven = &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Vendor]) || DP_Mat = &lt;/SPAN&gt;&lt;SPAN&gt;BLANK&lt;/SPAN&gt;&lt;SPAN&gt;() || DP_Mat = &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;('Table'[Matrial]),&lt;/SPAN&gt;&lt;SPAN&gt;"Awaiting Selection"&lt;/SPAN&gt;&lt;SPAN&gt;, result)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Feb 2024 08:54:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3732993#M145482</guid>
      <dc:creator>nareshr89</dc:creator>
      <dc:date>2024-02-29T08:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Default value of a visual affected by a slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3733043#M145485</link>
      <description>Thanks a lot for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I am still a beginner, can you please tell me what to do with that dax? Like make a new measure or what? Detailed steps will be much much appreciated.</description>
      <pubDate>Thu, 29 Feb 2024 09:08:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3733043#M145485</guid>
      <dc:creator>AdelNawar</dc:creator>
      <dc:date>2024-02-29T09:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Default value of a visual affected by a slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3733048#M145486</link>
      <description>&lt;P&gt;Update your current measure or create a new measure then use that measure in your report.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 09:10:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3733048#M145486</guid>
      <dc:creator>nareshr89</dc:creator>
      <dc:date>2024-02-29T09:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Default value of a visual affected by a slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3733084#M145489</link>
      <description>&lt;P&gt;Thanks a lot for your continuous help,&lt;/P&gt;&lt;P&gt;It works fine when nothing is selected, but once I select any vendor, it doesn't do the job of mentioning the material name:&lt;/P&gt;&lt;P&gt;Here I am not selecting any, "all", and it's working fine.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here: I started selecting:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 09:19:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3733084#M145489</guid>
      <dc:creator>AdelNawar</dc:creator>
      <dc:date>2024-02-29T09:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Default value of a visual affected by a slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3735152#M145581</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="698227" data-lia-user-login="AdelNawar" class="lia-mention lia-mention-user"&gt;AdelNawar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Based on your description, I have created some measures to achieve the effect you are looking for. Following picture shows the effect of the display.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CardVisual =

VAR _meterial =

    SELECTEDVALUE ( Providers[Materials] )

VAR _default = "Awaiting selection, or whatever."

RETURN

    IF ( ISFILTERED ( Providers[Materials] ), _meterial, _default )

&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;to&lt;/STRONG&gt; help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to get your questions answered quickly&lt;/A&gt;&amp;nbsp;--&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;&amp;nbsp;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 02:23:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3735152#M145581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-01T02:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Default value of a visual affected by a slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3735554#M145602</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;Your solution seems to be working, but is missing one small detail:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want the card to display the selected material code. (which is how your solution works).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want it to display the material name from the data set in a column called (material description).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my dataset contains 3 columns:&lt;/P&gt;&lt;P&gt;Vendor&lt;/P&gt;&lt;P&gt;Material (which is the material code we select after selecting the vendor)&lt;/P&gt;&lt;P&gt;Material description (which is the material name I want to be displayed upon selecting the vendor and the material description)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you edit your measure to match that?&lt;/P&gt;&lt;P&gt;Thanks and sorry for all time and effort&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 06:34:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3735554#M145602</guid>
      <dc:creator>AdelNawar</dc:creator>
      <dc:date>2024-03-01T06:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set Default value of a visual affected by a slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3735610#M145606</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="698227" data-lia-user-login="AdelNawar" class="lia-mention lia-mention-user"&gt;AdelNawar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course, the effect you want to achieve is very simple, please refer to the MEASURE below. the Material description is displayed only when both slicers are selected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CardVisual =
VAR _meterialDescription =
    SELECTEDVALUE ( Providers[Material description] )
VAR _default = "Awaiting selection, or whatever."
RETURN
    IF (
        ISFILTERED ( Providers[Material] ) &amp;amp;&amp;amp; ISFILTERED ( Providers[Providers] ),
        _meterialDescription,
        _default
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;FONT&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps, then please consider&amp;nbsp;Accept it as the solution&amp;nbsp;&amp;nbsp;to&lt;SPAN&gt;&amp;nbsp;help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;Thanks a lot!&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="nofollow noopener noreferrer"&gt;How to get your questions answered quickly&amp;nbsp;--&amp;nbsp;&lt;/A&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="nofollow noopener noreferrer"&gt;&amp;nbsp;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Mar 2024 07:07:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3735610#M145606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-01T07:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Default value of a visual affected by a slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3735702#M145609</link>
      <description>&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;I will be able to try it on Sunday Morning, but according to your screenshot, this is exactly what I want.&lt;/P&gt;&lt;P&gt;Hopefully I will be back on Sunday to thank you again and accept it as a solution (f)&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 07:41:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3735702#M145609</guid>
      <dc:creator>AdelNawar</dc:creator>
      <dc:date>2024-03-01T07:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Default value of a visual affected by a slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3738085#M145733</link>
      <description>&lt;P&gt;That's just Amazing !&lt;BR /&gt;Exactly what I wanted. Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2024 05:07:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Set-Default-value-of-a-visual-affected-by-a-slicer/m-p/3738085#M145733</guid>
      <dc:creator>AdelNawar</dc:creator>
      <dc:date>2024-03-03T05:07:08Z</dc:date>
    </item>
  </channel>
</rss>

