<?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 Dynamic total measure , based on slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-total-measure-based-on-slicer/m-p/3443843#M130896</link>
    <description>&lt;P&gt;Hi, I'm trying to calculate dynamic total, for the total orders palced YTD (i already have a seperate column for the total by week), also there is multiple customers in slicer. When i select the slicer, i want the dynamic total to change .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to do this to get value for denominator, so i can do another dynamic total on "ordes &amp;lt; 1 day" and use it as&amp;nbsp;numerator, so I can further calculate a % to keep below actual % a flat line (as on that week, rather than what i have currently shows the % of that week, see beloe image), which is dyanmic based on slicer and keep chnaging as more data is being added.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My main intension is to give an YTD actual %, linked to slicer - any other way ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried, below DAX, by creating a seperate table for customer. it seems not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dynamic Total Orders = CALCULATE(&lt;BR /&gt;SUM('Order'[Total No of Orders]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED('Order'[Customer]),&lt;BR /&gt;ALLSELECTED(Customer[Customer])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2023 22:28:55 GMT</pubDate>
    <dc:creator>gav1991</dc:creator>
    <dc:date>2023-09-22T22:28:55Z</dc:date>
    <item>
      <title>Dynamic total measure , based on slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-total-measure-based-on-slicer/m-p/3443843#M130896</link>
      <description>&lt;P&gt;Hi, I'm trying to calculate dynamic total, for the total orders palced YTD (i already have a seperate column for the total by week), also there is multiple customers in slicer. When i select the slicer, i want the dynamic total to change .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to do this to get value for denominator, so i can do another dynamic total on "ordes &amp;lt; 1 day" and use it as&amp;nbsp;numerator, so I can further calculate a % to keep below actual % a flat line (as on that week, rather than what i have currently shows the % of that week, see beloe image), which is dyanmic based on slicer and keep chnaging as more data is being added.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My main intension is to give an YTD actual %, linked to slicer - any other way ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried, below DAX, by creating a seperate table for customer. it seems not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dynamic Total Orders = CALCULATE(&lt;BR /&gt;SUM('Order'[Total No of Orders]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED('Order'[Customer]),&lt;BR /&gt;ALLSELECTED(Customer[Customer])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 22:28:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-total-measure-based-on-slicer/m-p/3443843#M130896</guid>
      <dc:creator>gav1991</dc:creator>
      <dc:date>2023-09-22T22:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic total measure , based on slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-total-measure-based-on-slicer/m-p/3444156#M130912</link>
      <description>&lt;P&gt;&lt;SPAN&gt;To create a dynamic total for the total orders placed YTD based on a slicer selection, you can use the following DAX measure:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dynamic Total Orders YTD =&lt;BR /&gt;VAR SelectedCustomers = VALUES('Order'[Customer])&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Order'[Total No of Orders]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('Order'),&lt;BR /&gt;'Order'[Customer] IN SelectedCustomers&lt;BR /&gt;&amp;amp;&amp;amp; 'Order'[Date] &amp;lt;= MAX('Order'[Date])&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's how this measure works:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;We use the VALUES function to get the list of selected customers from the slicer.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Then, we use the CALCULATE function to calculate the sum of 'Total No of Orders' based on the following conditions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The 'Customer' must be one of the selected customers.&lt;/LI&gt;&lt;LI&gt;The 'Date' must be less than or equal to the maximum 'Date' selected in the slicer.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This measure will dynamically adjust the total orders YTD based on the customer(s) selected in the slicer. When you change the slicer selection, the total will update accordingly.&lt;/P&gt;&lt;P&gt;Make sure you have a 'Date' column in your 'Order' table to track the order date, and ensure that your slicer is connected to the 'Customer' field.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 09:07:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-total-measure-based-on-slicer/m-p/3444156#M130912</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2023-09-23T09:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic total measure , based on slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-total-measure-based-on-slicer/m-p/3444317#M130927</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="403667" data-lia-user-login="123abc" class="lia-mention lia-mention-user"&gt;123abc&lt;/a&gt;&amp;nbsp; Hiya, thanks for your reply. However, i do not have a useful date in my data, i have from and to, however the data is built on the week number, is there a way I could use the above DAX around the week number?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attaching the&amp;nbsp;pbix file, - link for google drive&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1PYx1PixlCeAh9t_9xpCILgEwLF-0lzed/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1PYx1PixlCeAh9t_9xpCILgEwLF-0lzed/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is how the chart looks currently, when i select Customer A in slicer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to chart to look like below (made in excel)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you help please. much appricated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2023 17:31:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-total-measure-based-on-slicer/m-p/3444317#M130927</guid>
      <dc:creator>gav1991</dc:creator>
      <dc:date>2023-09-23T17:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic total measure , based on slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-total-measure-based-on-slicer/m-p/3444791#M131030</link>
      <description>&lt;P&gt;ok i try to solve this and will ans you soon.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 16:04:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-total-measure-based-on-slicer/m-p/3444791#M131030</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2023-09-24T16:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic total measure , based on slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-total-measure-based-on-slicer/m-p/3447126#M131186</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="621402" data-lia-user-login="gav1991" class="lia-mention lia-mention-user"&gt;gav1991&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try below code to create a [Acutal %] measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Actual % =
CALCULATE (
    DIVIDE (
        SUM ( 'Order'[Orders placed ≤ 1 Day] ),
        SUM ( 'Order'[Total No of Orders placed] )
    ),
    ALLEXCEPT ( 'Order', 'Order'[Customer] )
)&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 06:17:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-total-measure-based-on-slicer/m-p/3447126#M131186</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-26T06:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic total measure , based on slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-total-measure-based-on-slicer/m-p/3447421#M131218</link>
      <description>&lt;P&gt;thanks&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;it worked much appriciated.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 08:58:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-total-measure-based-on-slicer/m-p/3447421#M131218</guid>
      <dc:creator>gav1991</dc:creator>
      <dc:date>2023-09-26T08:58:42Z</dc:date>
    </item>
  </channel>
</rss>

