<?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: Dax Aggregation for Country level in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Aggregation-for-Country-level/m-p/2586608#M74407</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please use the following code&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;% Share Range = 
VAR Numerator = [# Model Number]
VAR T1 =
    CALCULATETABLE ( Initiative, ALLEXCEPT ( Initiative, Initiative[Country] ) )
VAR T2 = 
    SUMMARIZE ( T1, Initiative[Country], Initiative[Category] )
VAR T3 =
    ADDCOLUMNS ( T2, "Models", [# Model Number] )
VAR Denominator =
    SUMX ( T3, [Models] )
RETURN
    IF ( HASONEVALUE ( Initiative[Country] ),
        DIVIDE ( Numerator, Denominator ),
        1
    )&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 18 Jun 2022 05:33:30 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-06-18T05:33:30Z</dc:date>
    <item>
      <title>Dax Aggregation for Country level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Aggregation-for-Country-level/m-p/2585164#M74323</link>
      <description>&lt;P&gt;Hai All, I need one help on this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The above table % Share range is the expecting output&lt;BR /&gt;I want&amp;nbsp; to achieve this logic at the Dax level&lt;BR /&gt;Users want to see the % total at the country level&lt;BR /&gt;For eg: For DE (18+13+10+2+22) = 65&amp;nbsp;&lt;BR /&gt;18/65*100 = 27.69 For DE For "above target" category&amp;nbsp;&lt;BR /&gt;and for the model number calculation i used DISTINCT COUNT&amp;nbsp; and model number column is the test data type&lt;BR /&gt;Please help me to achieve this logic in dax level&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 09:12:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Aggregation-for-Country-level/m-p/2585164#M74323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-17T09:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Aggregation for Country level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Aggregation-for-Country-level/m-p/2585843#M74364</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a new measure and add the following formula:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;% Share = 
VAR Volume =
    SUM('Table'[Model Number])
VAR AllVolume =
    CALCULATE ( SUM('Table'[Model Number]),ALLSELECTED('Table'[Category]) )

RETURN
    DIVIDE ( Volume, AllVolume )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fie also attached&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 14:10:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Aggregation-for-Country-level/m-p/2585843#M74364</guid>
      <dc:creator>themistoklis</dc:creator>
      <dc:date>2022-06-17T14:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Aggregation for Country level</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Aggregation-for-Country-level/m-p/2586608#M74407</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please use the following code&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;% Share Range = 
VAR Numerator = [# Model Number]
VAR T1 =
    CALCULATETABLE ( Initiative, ALLEXCEPT ( Initiative, Initiative[Country] ) )
VAR T2 = 
    SUMMARIZE ( T1, Initiative[Country], Initiative[Category] )
VAR T3 =
    ADDCOLUMNS ( T2, "Models", [# Model Number] )
VAR Denominator =
    SUMX ( T3, [Models] )
RETURN
    IF ( HASONEVALUE ( Initiative[Country] ),
        DIVIDE ( Numerator, Denominator ),
        1
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 18 Jun 2022 05:33:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Aggregation-for-Country-level/m-p/2586608#M74407</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-18T05:33:30Z</dc:date>
    </item>
  </channel>
</rss>

