<?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: Create Total Measure with a Slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Total-Measure-with-a-Slicer/m-p/2508300#M69522</link>
    <description>&lt;P&gt;It worked! Thanks a lot Arul.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2022 16:08:43 GMT</pubDate>
    <dc:creator>AbbyLear</dc:creator>
    <dc:date>2022-05-11T16:08:43Z</dc:date>
    <item>
      <title>Create Total Measure with a Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Total-Measure-with-a-Slicer/m-p/2508103#M69511</link>
      <description>&lt;P&gt;Hi guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fairly new to PowerBI so would be great if someone can enlighten me here on what formula I should use.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table columns:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;Product Category&lt;/P&gt;&lt;P&gt;Quantity Sold&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did the following:&lt;/P&gt;&lt;P&gt;1. Created a measure called "Total Sold" which is the sum of the quantity sold column.&lt;/P&gt;&lt;P&gt;2. In visual, I added a slicer based on the Date - so that I can filter on quarters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. In visual, I also created a matrix with Product Category as rows, and "Total Sold" as the first column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to:&lt;/P&gt;&lt;P&gt;a. Create a measure which calculates the total of quantity sold&lt;/P&gt;&lt;P&gt;b. Create another measure which calculates the % of total (so, will be Total sold Divided by the new measure created above.)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a., I used formula "calculate([Total sold], all ('table_name')). However, it looks like it removed all filters, including the one that came from the slicer and returned the total quantity, while I wanted it to return the total quantity for the selected quarter on the slicer. Can anyone please help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 15:01:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Total-Measure-with-a-Slicer/m-p/2508103#M69511</guid>
      <dc:creator>AbbyLear</dc:creator>
      <dc:date>2022-05-11T15:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create Total Measure with a Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Total-Measure-with-a-Slicer/m-p/2508274#M69521</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="388653" data-lia-user-login="AbbyLear" class="lia-mention lia-mention-user"&gt;AbbyLear&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;calculate([Total sold], ALLSELECTED ('table_name'))&lt;/LI-CODE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arul&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 16:01:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Total-Measure-with-a-Slicer/m-p/2508274#M69521</guid>
      <dc:creator>Arul</dc:creator>
      <dc:date>2022-05-11T16:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create Total Measure with a Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Total-Measure-with-a-Slicer/m-p/2508300#M69522</link>
      <description>&lt;P&gt;It worked! Thanks a lot Arul.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 16:08:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Total-Measure-with-a-Slicer/m-p/2508300#M69522</guid>
      <dc:creator>AbbyLear</dc:creator>
      <dc:date>2022-05-11T16:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create Total Measure with a Slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Total-Measure-with-a-Slicer/m-p/2508332#M69526</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="388653" data-lia-user-login="AbbyLear" class="lia-mention lia-mention-user"&gt;AbbyLear&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If it solves your issue, mark it as accepted solution and a kudo would be great!!!&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 16:20:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-Total-Measure-with-a-Slicer/m-p/2508332#M69526</guid>
      <dc:creator>Arul</dc:creator>
      <dc:date>2022-05-11T16:20:36Z</dc:date>
    </item>
  </channel>
</rss>

