<?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 syntax to calculate the percentage of the total in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-syntax-to-calculate-the-percentage-of-the-total/m-p/4408089#M175036</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="747777" data-lia-user-login="ale259" class="lia-mention lia-mention-user"&gt;ale259&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for&amp;nbsp;bhanu_gautam's reply!&lt;BR /&gt;The information you provided is too little. It is unlikely that we can accurately identify the problem based on the existing information.&lt;BR /&gt;After testing, there should be no problem with the DAX you provided (if you only have one table):&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The problem should be in your data model or in your measure [SumofVisitors]. Please provide sample data of all the data tables involved, the relationship between the tables, and the DAX used by measure [SumofVisitors] (you can replace your actual data with the test data). Thank you!&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dino Tao&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2025 03:59:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-02-13T03:59:50Z</dc:date>
    <item>
      <title>DAX syntax to calculate the percentage of the total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-syntax-to-calculate-the-percentage-of-the-total/m-p/4407700#M175013</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;I created the calculate DAX as the picture below, and the result is everyday 100%, which 100% should be the total of the whole week.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Can anyone point out what's wrong with my code? Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2025 21:27:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-syntax-to-calculate-the-percentage-of-the-total/m-p/4407700#M175013</guid>
      <dc:creator>ale259</dc:creator>
      <dc:date>2025-02-12T21:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX syntax to calculate the percentage of the total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-syntax-to-calculate-the-percentage-of-the-total/m-p/4408068#M175035</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="747777" data-lia-user-login="ale259" class="lia-mention lia-mention-user"&gt;ale259&lt;/a&gt;&amp;nbsp;Try using&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;PercentOfAllVisitors =&lt;BR /&gt;VAR TotalSumVisitors = SUM('Daily Visits 2024'[SumofVisitors])&lt;BR /&gt;VAR GrandTotalVisitors = CALCULATE(SUM('Daily Visits 2024'[SumofVisitors]), ALL('Daily Visits 2024'))&lt;BR /&gt;RETURN DIVIDE(TotalSumVisitors, GrandTotalVisitors)&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 03:38:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-syntax-to-calculate-the-percentage-of-the-total/m-p/4408068#M175035</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-02-13T03:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: DAX syntax to calculate the percentage of the total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-syntax-to-calculate-the-percentage-of-the-total/m-p/4408089#M175036</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="747777" data-lia-user-login="ale259" class="lia-mention lia-mention-user"&gt;ale259&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for&amp;nbsp;bhanu_gautam's reply!&lt;BR /&gt;The information you provided is too little. It is unlikely that we can accurately identify the problem based on the existing information.&lt;BR /&gt;After testing, there should be no problem with the DAX you provided (if you only have one table):&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The problem should be in your data model or in your measure [SumofVisitors]. Please provide sample data of all the data tables involved, the relationship between the tables, and the DAX used by measure [SumofVisitors] (you can replace your actual data with the test data). Thank you!&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dino Tao&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 03:59:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-syntax-to-calculate-the-percentage-of-the-total/m-p/4408089#M175036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-13T03:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: DAX syntax to calculate the percentage of the total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-syntax-to-calculate-the-percentage-of-the-total/m-p/4409223#M175088</link>
      <description>&lt;P&gt;Hi Dino, thank you for your response. It seems that I cannot upload PowerBI up here, so I wonder how to share this file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyhow, this is my relationship tables:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Sum of Visitors = SUM('Daily Visits 2024'[Visitors]&lt;/P&gt;&lt;P&gt;I also create other measures (in total I have 28 measures), such as the Year-over-year that I created after this measure of percentage of total with this syntax:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;YoY% Visitors =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;Visitors2024&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;[SumofVisitors]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;Visitors2023&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Daily Visits 2023'&lt;/SPAN&gt;&lt;SPAN&gt;[Visitors]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Visitors2024&lt;/SPAN&gt;&lt;SPAN&gt; - &lt;/SPAN&gt;&lt;SPAN&gt;Visitors2023&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Visitors2023&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;I wonder if my measure Percentage of Total is not working because of this Year-over-year measure that is created afterwards. Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 14:06:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-syntax-to-calculate-the-percentage-of-the-total/m-p/4409223#M175088</guid>
      <dc:creator>ale259</dc:creator>
      <dc:date>2025-02-13T14:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: DAX syntax to calculate the percentage of the total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-syntax-to-calculate-the-percentage-of-the-total/m-p/4409227#M175089</link>
      <description>&lt;P&gt;Yes I used that and it's now working. Tu.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2025 14:07:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-syntax-to-calculate-the-percentage-of-the-total/m-p/4409227#M175089</guid>
      <dc:creator>ale259</dc:creator>
      <dc:date>2025-02-13T14:07:32Z</dc:date>
    </item>
  </channel>
</rss>

