<?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: Show value only if there is one value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-if-there-is-one-value/m-p/1976364#M43511</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="196904" data-lia-user-login="Mohammad_Refaei" class="lia-mention lia-mention-user"&gt;Mohammad_Refaei&lt;/a&gt;&amp;nbsp;Thank you so much for your help. I really appreciate it. Now, I know that I need to learn about&amp;nbsp;&lt;SPAN&gt;ISINSCOPE. I have a question for you. You have illustrated two different formulas, but both end with same results. I guess either case (Max or&amp;nbsp;&lt;SPAN class="Keyword"&gt;TOPN&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Number"&gt;1&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN class="Keyword"&gt;VALUES)), both are logically same? When do we use Max and when do we use TOPN? If you can provide, that is great, otherwise, I will just Google them. Thanks!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jul 2021 17:19:48 GMT</pubDate>
    <dc:creator>JustinDoh1</dc:creator>
    <dc:date>2021-07-23T17:19:48Z</dc:date>
    <item>
      <title>Show value only if there is one value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-if-there-is-one-value/m-p/1973952#M43420</link>
      <description>&lt;P&gt;I am sharing a Pbix file here at &lt;A href="https://drive.google.com/file/d/142sXkxpXkSRoT6dCnCRl4-pyw6-6d6LT/view?usp=sharing" target="_self"&gt;this Googld drive&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am trying to have an empty value if there is more than one value on these areas (4 box with orange colors).&lt;/P&gt;&lt;P&gt;So, on the bottom image, value for "Max" column shows "85+" because the measure Max does not limit anything that has more than one value.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I previously used "SelectedValue", but the issue happens because on some cells, the value does not show (like box with green color) because there are more than 1 output.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I went ahead and modified like this, but now the issue is &lt;STRONG&gt;Hasonevalue&lt;/STRONG&gt;('Table'[Age Band]) filtered this one because there are two outputs for Feb 2020 for 'Brave, Heart'.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to fix this calculated column so that when somebody reaches, let's say 64, it does not populates both "55-64" and "65 -74"?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I modify the DAX code of "Max" so that I could only show value &lt;STRONG&gt;if there is only one value &lt;/STRONG&gt;&amp;amp;&amp;nbsp;DAX code of "Age Band" so that it &lt;STRONG&gt;only populates one value if somebody reaches exactly certain age &lt;/STRONG&gt;(this case of age 64 as "55-64")?&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;</description>
      <pubDate>Thu, 22 Jul 2021 18:48:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-if-there-is-one-value/m-p/1973952#M43420</guid>
      <dc:creator>JustinDoh1</dc:creator>
      <dc:date>2021-07-22T18:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Show value only if there is one value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-if-there-is-one-value/m-p/1974662#M43440</link>
      <description>&lt;P&gt;You should use ISINSCOPE not HASONEVALUE which will fix the issue since you don't want to show any values if there is any grouping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Max&amp;nbsp;=&amp;nbsp;&lt;SPAN class="Keyword"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Keyword"&gt;ISINSCOPE&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;'Table'[Full&amp;nbsp;Name]&amp;nbsp;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN class="Keyword"&gt;MAX&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;'Table'[Age&amp;nbsp;Band]&amp;nbsp;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding the selectedvalue measure, you may follow the same technique.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Selectedvalue&amp;nbsp;=&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN class="Keyword"&gt;IF&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;ISINSCOPE&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;'Table'[Full&amp;nbsp;Name]&amp;nbsp;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN class="indent4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="Keyword"&gt;TOPN&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Number"&gt;1&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN class="Keyword"&gt;VALUES&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;'Table'[Age&amp;nbsp;Band]&amp;nbsp;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;SPAN class="Parenthesis"&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 04:28:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-if-there-is-one-value/m-p/1974662#M43440</guid>
      <dc:creator>Mohammad_Refaei</dc:creator>
      <dc:date>2021-07-23T04:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Show value only if there is one value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-if-there-is-one-value/m-p/1976364#M43511</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="196904" data-lia-user-login="Mohammad_Refaei" class="lia-mention lia-mention-user"&gt;Mohammad_Refaei&lt;/a&gt;&amp;nbsp;Thank you so much for your help. I really appreciate it. Now, I know that I need to learn about&amp;nbsp;&lt;SPAN&gt;ISINSCOPE. I have a question for you. You have illustrated two different formulas, but both end with same results. I guess either case (Max or&amp;nbsp;&lt;SPAN class="Keyword"&gt;TOPN&lt;/SPAN&gt;&lt;SPAN class="Parenthesis"&gt;&amp;nbsp;(&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Number"&gt;1&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN class="Keyword"&gt;VALUES)), both are logically same? When do we use Max and when do we use TOPN? If you can provide, that is great, otherwise, I will just Google them. Thanks!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 17:19:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-if-there-is-one-value/m-p/1976364#M43511</guid>
      <dc:creator>JustinDoh1</dc:creator>
      <dc:date>2021-07-23T17:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Show value only if there is one value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-if-there-is-one-value/m-p/1976713#M43523</link>
      <description>&lt;P&gt;Most welcome&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;... I didn't use MAX since the age band is text not numerical value, so I selected the first available text value.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 23:40:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-if-there-is-one-value/m-p/1976713#M43523</guid>
      <dc:creator>Mohammad_Refaei</dc:creator>
      <dc:date>2021-07-23T23:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Show value only if there is one value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-if-there-is-one-value/m-p/1976718#M43526</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="196904" data-lia-user-login="Mohammad_Refaei" class="lia-mention lia-mention-user"&gt;Mohammad_Refaei&lt;/a&gt;&amp;nbsp;Thanks. So, is it just your preference or would it cause error if I use MAX?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 23:57:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-if-there-is-one-value/m-p/1976718#M43526</guid>
      <dc:creator>JustinDoh1</dc:creator>
      <dc:date>2021-07-23T23:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Show value only if there is one value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-if-there-is-one-value/m-p/1976725#M43527</link>
      <description>&lt;P&gt;MAX also will work, it is just a matter of preference. Remember that we already have only one value in this case.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jul 2021 00:09:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-if-there-is-one-value/m-p/1976725#M43527</guid>
      <dc:creator>Mohammad_Refaei</dc:creator>
      <dc:date>2021-07-24T00:09:16Z</dc:date>
    </item>
  </channel>
</rss>

