<?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: Filter data on specific value to calculate % share in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-data-on-specific-value-to-calculate-share/m-p/3206642#M116797</link>
    <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to plot a matrix visual with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) source column&lt;/P&gt;&lt;P&gt;2) a calculated column like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YYMM = FORMAT(DATE([Year], [Month], 1), "mmm-yy")&lt;/LI-CODE&gt;&lt;P&gt;3) two measures like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Sales = SUM(data[TotalSales])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;% of Share of Zone = 
DIVIDE(
    SUM(data[TotalSales]),
    CALCULATE(
        SUM(data[TotalSales]),
        ALL(data[Source])
    )
)*2&lt;/LI-CODE&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2023 07:17:58 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-04-26T07:17:58Z</dc:date>
    <item>
      <title>Filter data on specific value to calculate % share</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-data-on-specific-value-to-calculate-share/m-p/3205597#M116743</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have following kind of value&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I need to calculate % share of each sales person against Zone Total. Following is the format of the required representation&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Not be able to figure out how to write the dax for the % share.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 17:36:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-data-on-specific-value-to-calculate-share/m-p/3205597#M116743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-25T17:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data on specific value to calculate % share</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-data-on-specific-value-to-calculate-share/m-p/3206642#M116797</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to plot a matrix visual with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) source column&lt;/P&gt;&lt;P&gt;2) a calculated column like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YYMM = FORMAT(DATE([Year], [Month], 1), "mmm-yy")&lt;/LI-CODE&gt;&lt;P&gt;3) two measures like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Sales = SUM(data[TotalSales])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;% of Share of Zone = 
DIVIDE(
    SUM(data[TotalSales]),
    CALCULATE(
        SUM(data[TotalSales]),
        ALL(data[Source])
    )
)*2&lt;/LI-CODE&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 07:17:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-data-on-specific-value-to-calculate-share/m-p/3206642#M116797</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-04-26T07:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filter data on specific value to calculate % share</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-data-on-specific-value-to-calculate-share/m-p/3207401#M116846</link>
      <description>&lt;P&gt;Thank you for your reply. Since there will be some filters in this page I may have to change the dax for % share and to include the source column in the ALL filter. Let me try&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 13:50:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-data-on-specific-value-to-calculate-share/m-p/3207401#M116846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-26T13:50:37Z</dc:date>
    </item>
  </channel>
</rss>

