<?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: Need help on Dax_Return a specified value if all options are selected in the filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Dax-Return-a-specified-value-if-all-options-are/m-p/3937593#M153130</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397481" data-lia-user-login="Hong_HW" class="lia-mention lia-mention-user"&gt;Hong_HW&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply from &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;, please allow me to provide another insight:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397481" data-lia-user-login="Hong_HW" class="lia-mention lia-mention-user"&gt;Hong_HW&lt;/a&gt;&amp;nbsp;, the following methods are for your reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure as follow&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _ctry = CALCULATE(SUM('Data Table'[share%]), FILTER('Data Table', [Country] = "Ctry"))
VAR _share = CALCULATE(SUM('Data Table'[share%]), FILTER('Data Table', [Country] = SELECTEDVALUE(Country[Country])))
RETURN
IF(NOT(ISFILTERED(Country[Country])), _ctry, _share)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;In the above formula, if you select a country, it returns the "share%" of the corresponding country, you can modify it according to your needs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yulia Xu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2024 02:23:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-22T02:23:24Z</dc:date>
    <item>
      <title>Need help on Dax_Return a specified value if all options are selected in the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Dax-Return-a-specified-value-if-all-options-are/m-p/3936713#M153099</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really appreciate it if you could help me on the dax to return the following result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the return result to show the Ctry value of 74% if all countries are selected in the country filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Country Filter&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;SG&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CN&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;KR&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;UK&lt;/TD&gt;&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:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Dax-Return-a-specified-value-if-all-options-are/m-p/3936713#M153099</guid>
      <dc:creator>Hong_HW</dc:creator>
      <dc:date>2024-05-21T17:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on Dax_Return a specified value if all options are selected in the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Dax-Return-a-specified-value-if-all-options-are/m-p/3936755#M153100</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I assume the implicit measure is used in the visualizations.&lt;/P&gt;
&lt;P&gt;Please try create a measure (explicit measure) by using AVERAGE DAX function.&lt;/P&gt;
&lt;P&gt;Please refer to the link down below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-tutorial-create-measures?wt.mc_id=DP-MVP-5004989" target="_blank"&gt;Tutorial: Create your own measures in Power BI Desktop - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 17:37:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Dax-Return-a-specified-value-if-all-options-are/m-p/3936755#M153100</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-05-21T17:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on Dax_Return a specified value if all options are selected in the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Dax-Return-a-specified-value-if-all-options-are/m-p/3937551#M153129</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;But the average measure will not give me the correct result.&lt;/P&gt;&lt;P&gt;Ctry 74% is not the average of all countries.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 02:02:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Dax-Return-a-specified-value-if-all-options-are/m-p/3937551#M153129</guid>
      <dc:creator>Hong_HW</dc:creator>
      <dc:date>2024-05-22T02:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on Dax_Return a specified value if all options are selected in the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Dax-Return-a-specified-value-if-all-options-are/m-p/3937593#M153130</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397481" data-lia-user-login="Hong_HW" class="lia-mention lia-mention-user"&gt;Hong_HW&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply from &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;, please allow me to provide another insight:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397481" data-lia-user-login="Hong_HW" class="lia-mention lia-mention-user"&gt;Hong_HW&lt;/a&gt;&amp;nbsp;, the following methods are for your reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure as follow&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _ctry = CALCULATE(SUM('Data Table'[share%]), FILTER('Data Table', [Country] = "Ctry"))
VAR _share = CALCULATE(SUM('Data Table'[share%]), FILTER('Data Table', [Country] = SELECTEDVALUE(Country[Country])))
RETURN
IF(NOT(ISFILTERED(Country[Country])), _ctry, _share)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;In the above formula, if you select a country, it returns the "share%" of the corresponding country, you can modify it according to your needs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yulia Xu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 02:23:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Dax-Return-a-specified-value-if-all-options-are/m-p/3937593#M153130</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-22T02:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on Dax_Return a specified value if all options are selected in the filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Dax-Return-a-specified-value-if-all-options-are/m-p/3937685#M153135</link>
      <description>&lt;P&gt;Thank you very much for the clear explanation.&lt;/P&gt;&lt;P&gt;It works for me, really appreciate it.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 03:08:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-on-Dax-Return-a-specified-value-if-all-options-are/m-p/3937685#M153135</guid>
      <dc:creator>Hong_HW</dc:creator>
      <dc:date>2024-05-22T03:08:54Z</dc:date>
    </item>
  </channel>
</rss>

