<?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: Ouput the original value when a single option from slicer is selected, Ouput &amp;quot;NA&amp;quot; when multiple. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ouput-the-original-value-when-a-single-option-from-slicer-is/m-p/2659375#M78782</link>
    <description>&lt;P&gt;Can you share me the code or something. Not heard of it. Will be a great help. Thanks for the reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2022 13:57:45 GMT</pubDate>
    <dc:creator>sobhik_saha_98</dc:creator>
    <dc:date>2022-07-25T13:57:45Z</dc:date>
    <item>
      <title>Ouput the original value when a single option from slicer is selected, Ouput "NA" when multiple.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ouput-the-original-value-when-a-single-option-from-slicer-is/m-p/2658666#M78734</link>
      <description>&lt;P&gt;So I am using a table visual which has multiple columns, There is this 1 column where I need to show the original value when a single option is selected and "NA" when there is a multi select in the table itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what should happen on single select--&amp;gt;&amp;gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;col_header&lt;/TD&gt;&lt;TD&gt;col_header&lt;/TD&gt;&lt;TD&gt;col_header&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Target_Col&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;0.81&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;0.92&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what should happen on Multi select--&amp;gt;&amp;gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;col_header&lt;/TD&gt;&lt;TD&gt;col_header&lt;/TD&gt;&lt;TD&gt;col_header&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Target_Col&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;NA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;NA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;..&lt;/TD&gt;&lt;TD&gt;NA&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need to complete this ASAP. Any help is appreciated. Cheers.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 09:32:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ouput-the-original-value-when-a-single-option-from-slicer-is/m-p/2658666#M78734</guid>
      <dc:creator>sobhik_saha_98</dc:creator>
      <dc:date>2022-07-25T09:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Ouput the original value when a single option from slicer is selected, Ouput "NA" when multiple.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ouput-the-original-value-when-a-single-option-from-slicer-is/m-p/2659110#M78770</link>
      <description>&lt;P&gt;Just use the &lt;A href="https://dax.guide/hasonefilter" target="_blank" rel="noopener"&gt;HASONEFILTER&lt;/A&gt; function to make decisions in your DAX code.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 12:16:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ouput-the-original-value-when-a-single-option-from-slicer-is/m-p/2659110#M78770</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-07-25T12:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Ouput the original value when a single option from slicer is selected, Ouput "NA" when multiple.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ouput-the-original-value-when-a-single-option-from-slicer-is/m-p/2659375#M78782</link>
      <description>&lt;P&gt;Can you share me the code or something. Not heard of it. Will be a great help. Thanks for the reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 13:57:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ouput-the-original-value-when-a-single-option-from-slicer-is/m-p/2659375#M78782</guid>
      <dc:creator>sobhik_saha_98</dc:creator>
      <dc:date>2022-07-25T13:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ouput the original value when a single option from slicer is selected, Ouput "NA" when multiple.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ouput-the-original-value-when-a-single-option-from-slicer-is/m-p/2669638#M79550</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="416649" data-lia-user-login="sobhik_saha_98" class="lia-mention lia-mention-user"&gt;sobhik_saha_98&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;According to your description, I create a sample.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Put Column1 in a slicer, then create a measure to show Column2 when there is a single option is selected in the slicer otherwise display NA. Here's my solution, create a measure(not calculated column because it can't change by the slicer selection).&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
IF (
    COUNTROWS ( ALLSELECTED ( 'Table'[Column1] ) ) = 1,
    MAX ( 'Table'[Column2] ),
    "NA"
)
&lt;/LI-CODE&gt;
&lt;P&gt;Then get the result.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You may need to tweak the formula a bit depending on your sample, but this is the basic idea.&lt;/P&gt;
&lt;P&gt;I attach my sample below for your reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps,&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 13:42:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ouput-the-original-value-when-a-single-option-from-slicer-is/m-p/2669638#M79550</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2022-07-29T13:42:06Z</dc:date>
    </item>
  </channel>
</rss>

