<?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 only show measure when specific dimensions is chosen in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-only-show-measure-when-specific-dimensions-is-chosen/m-p/2737740#M83997</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="430314" data-lia-user-login="Chancellor" class="lia-mention lia-mention-user"&gt;Chancellor&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try following DAX:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
var class_is_filter=HASONEFILTER(Sheet21[Class])
return
IF(class_is_filter,CONCATENATEX(Sheet21,[Population],"; "))

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this the result you want?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If I misunderstand your demands, please feel free to contact us in time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Yadong Fang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2022 10:09:17 GMT</pubDate>
    <dc:creator>v-yadongf-msft</dc:creator>
    <dc:date>2022-08-31T10:09:17Z</dc:date>
    <item>
      <title>How to only show measure when specific dimensions is chosen</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-only-show-measure-when-specific-dimensions-is-chosen/m-p/2717078#M82734</link>
      <description>&lt;P&gt;I have at data set which in general is like this example:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;School&lt;/TD&gt;&lt;TD&gt;Class&lt;/TD&gt;&lt;TD&gt;Adress&lt;/TD&gt;&lt;TD&gt;Population&lt;/TD&gt;&lt;TD&gt;Classtype&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Greenville&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Littletown&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Old public&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Beartown&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Blue Tech&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Donkeytown&lt;/TD&gt;&lt;TD&gt;41&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Greenville&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Littletown&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Old public&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Beartown&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Blue Tech&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Donkeytown&lt;/TD&gt;&lt;TD&gt;31&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Greenville&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Littletown&lt;/TD&gt;&lt;TD&gt;44&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Old public&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Beartown&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Blue Tech&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Donkeytown&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;I am trying to make a report where I only show the measure Population in the report when specific dimensions is chosen.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The rules are as follows:&lt;/P&gt;&lt;P&gt;A)When Class + Classtype is chosen in the filter then show Population&amp;nbsp;&lt;BR /&gt;B)When All other dimensions in combinations with classtype is chosen then blank population&lt;/P&gt;&lt;P&gt;C)Else show population (e.g. all other filter values are accepted).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im having a hard time especially regardring the B-part of the rules. Any suggestions?&lt;BR /&gt;I think A should be IF (ISINSCOPE ([Class]) &amp;amp;&amp;amp; ISINSCOPE ([Classtype), Population)&lt;/P&gt;&lt;P&gt;Rest should be an OR statement nested - or what?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 12:49:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-only-show-measure-when-specific-dimensions-is-chosen/m-p/2717078#M82734</guid>
      <dc:creator>Chancellor</dc:creator>
      <dc:date>2022-08-22T12:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to only show measure when specific dimensions is chosen</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-only-show-measure-when-specific-dimensions-is-chosen/m-p/2717124#M82740</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="430314" data-lia-user-login="Chancellor" class="lia-mention lia-mention-user"&gt;Chancellor&lt;/a&gt;&amp;nbsp;Perhaps try HASONEVALUE instead of ISINSCOPE&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 13:04:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-only-show-measure-when-specific-dimensions-is-chosen/m-p/2717124#M82740</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-08-22T13:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to only show measure when specific dimensions is chosen</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-only-show-measure-when-specific-dimensions-is-chosen/m-p/2717450#M82752</link>
      <description>&lt;P&gt;&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; Thanks for the input. The problem with HASONE VALUE is it only filters correct if I choose a filter value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measuretest:= if (HASONEVALUE([Classtype])&lt;/P&gt;&lt;P&gt;&amp;amp;&amp;amp; or (HASONEVALUe ([Address]), HASONEVALUE([School])), BLANK(), [Population])&lt;BR /&gt;&lt;BR /&gt;The input here only blanks classtypes when I filter on one value of adress or school. I want it to blank in ALL cases where I choose for examples adresse and classtype in the filter.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 07:37:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-only-show-measure-when-specific-dimensions-is-chosen/m-p/2717450#M82752</guid>
      <dc:creator>Chancellor</dc:creator>
      <dc:date>2022-08-23T07:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to only show measure when specific dimensions is chosen</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-only-show-measure-when-specific-dimensions-is-chosen/m-p/2720959#M82974</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="430314" data-lia-user-login="Chancellor" class="lia-mention lia-mention-user"&gt;Chancellor&lt;/a&gt;&amp;nbsp;Wouldn't it just be:&lt;/P&gt;
&lt;P&gt;IF(HASONEVALUE([Classtype]) &amp;amp;&amp;amp; HASONEVALUE([Class]),[Population], BLANK())&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 16:21:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-only-show-measure-when-specific-dimensions-is-chosen/m-p/2720959#M82974</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-08-23T16:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to only show measure when specific dimensions is chosen</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-only-show-measure-when-specific-dimensions-is-chosen/m-p/2737740#M83997</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="430314" data-lia-user-login="Chancellor" class="lia-mention lia-mention-user"&gt;Chancellor&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try following DAX:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
var class_is_filter=HASONEFILTER(Sheet21[Class])
return
IF(class_is_filter,CONCATENATEX(Sheet21,[Population],"; "))

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this the result you want?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If I misunderstand your demands, please feel free to contact us in time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Yadong Fang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 10:09:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-only-show-measure-when-specific-dimensions-is-chosen/m-p/2737740#M83997</guid>
      <dc:creator>v-yadongf-msft</dc:creator>
      <dc:date>2022-08-31T10:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to only show measure when specific dimensions is chosen</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-only-show-measure-when-specific-dimensions-is-chosen/m-p/2743424#M84408</link>
      <description>&lt;P&gt;HI. Almost &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I found a solution with IS IN SCOPE + IF. Thank you it helped .&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 11:50:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-only-show-measure-when-specific-dimensions-is-chosen/m-p/2743424#M84408</guid>
      <dc:creator>Chancellor</dc:creator>
      <dc:date>2022-09-02T11:50:02Z</dc:date>
    </item>
  </channel>
</rss>

