<?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: Static Baseline Value (Grouped on Category ID) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline-Value-Grouped-on-Category-ID/m-p/2934708#M96644</link>
    <description>&lt;P&gt;Hi，&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="451586" data-lia-user-login="Euro0681" class="lia-mention lia-mention-user"&gt;Euro0681&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should try &lt;A href="https://learn.microsoft.com/en-us/dax/allexcept-function-dax" target="_blank" rel="noopener"&gt;ALLEXCEPT&lt;/A&gt; ,like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Baseline = 
CALCULATE (
    DIVIDE ( SUM ( 'Table'[Amount] ), SUM ( 'Table'[Quantity] ) ),
    FILTER (
        ALLEXCEPT ( 'Table', 'Table'[ProductID] ),
        'Table'[_Period] IN { "2019 - 11", "2019 - 12", "2020 - 01" }
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;Please check the sample file for more details.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 06:40:52 GMT</pubDate>
    <dc:creator>v-easonf-msft</dc:creator>
    <dc:date>2022-11-29T06:40:52Z</dc:date>
    <item>
      <title>Static Baseline Value (Grouped on Category ID)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline-Value-Grouped-on-Category-ID/m-p/2934075#M96615</link>
      <description>&lt;P&gt;I'm trying to Calculate a baseline value which calculates a products weighted price by calculating "SUM(Amount)/SUM(Quantity)" at a given point in time but the value must remain static for all items that are the same (regardless of additional columns or fields added).&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;I've used a measure and have gotten the baseline value which give me correct values but doesn't remain static (as measure work with filter context) so I have tried adjusting the calculation to work with a column and it return incorrect values (since they work differently with row context) if someone could suggest a solution! my calculation is below when using the measure&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Baseline =&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Calculate ( DIVIDE (SUM ('Table'[Amount]), SUM ('Table'[Quantity]) ), 'Table'[Period] in {"2019 - 11", "2019 - 12", "2020 - 01"} )&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;if adding any other columns (fields) such as country or whatever the case is I need this value to stay static for only each product (in a sense like a group by "Product" in SQL if it helps any)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 00:06:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline-Value-Grouped-on-Category-ID/m-p/2934075#M96615</guid>
      <dc:creator>Euro0681</dc:creator>
      <dc:date>2022-11-29T00:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Static Baseline Value (Grouped on Category ID)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline-Value-Grouped-on-Category-ID/m-p/2934089#M96617</link>
      <description>&lt;P&gt;try to add a ALL() argument, like this:&lt;/P&gt;&lt;DIV&gt;Baseline =&lt;DIV&gt;Calculate (&amp;nbsp;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;DIVIDE (SUM ('Table'[Amount]), SUM ('Table'[Quantity]) ),&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;'Table'[Period] in {"2019 - 11", "2019 - 12", "2020 - 01"},&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ALL()&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;)&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 Nov 2022 00:28:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline-Value-Grouped-on-Category-ID/m-p/2934089#M96617</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-29T00:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Static Baseline Value (Grouped on Category ID)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline-Value-Grouped-on-Category-ID/m-p/2934708#M96644</link>
      <description>&lt;P&gt;Hi，&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="451586" data-lia-user-login="Euro0681" class="lia-mention lia-mention-user"&gt;Euro0681&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should try &lt;A href="https://learn.microsoft.com/en-us/dax/allexcept-function-dax" target="_blank" rel="noopener"&gt;ALLEXCEPT&lt;/A&gt; ,like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Baseline = 
CALCULATE (
    DIVIDE ( SUM ( 'Table'[Amount] ), SUM ( 'Table'[Quantity] ) ),
    FILTER (
        ALLEXCEPT ( 'Table', 'Table'[ProductID] ),
        'Table'[_Period] IN { "2019 - 11", "2019 - 12", "2020 - 01" }
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;Please check the sample file for more details.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Eason&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 06:40:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline-Value-Grouped-on-Category-ID/m-p/2934708#M96644</guid>
      <dc:creator>v-easonf-msft</dc:creator>
      <dc:date>2022-11-29T06:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Static Baseline Value (Grouped on Category ID)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline-Value-Grouped-on-Category-ID/m-p/2936078#M96765</link>
      <description>&lt;P&gt;Didin't work as it only gives me one value thats static for all products and i need static values for each product (meaning product1 = 0.2 , product2 = 0.3 so anytime product1 is displayed it should show 0.2 and anytime product2 is shown it should show 0.3) by using your suggestiion i get one value like 8.2 for all products&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:19:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline-Value-Grouped-on-Category-ID/m-p/2936078#M96765</guid>
      <dc:creator>Euro0681</dc:creator>
      <dc:date>2022-11-29T14:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Static Baseline Value (Grouped on Category ID)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline-Value-Grouped-on-Category-ID/m-p/2936162#M96776</link>
      <description>&lt;P&gt;This is exactly what I'm needing but one question what if my Period column is coming from a different table than the product ID? (so for simplicity of my question i put them in the same table but i Have a date table where i'm pulling the period from so how would i adjust the all except logic?)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:41:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline-Value-Grouped-on-Category-ID/m-p/2936162#M96776</guid>
      <dc:creator>Euro0681</dc:creator>
      <dc:date>2022-11-29T14:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Static Baseline Value (Grouped on Category ID)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline-Value-Grouped-on-Category-ID/m-p/2936197#M96783</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192401" data-lia-user-login="v-easonf-msft" class="lia-mention lia-mention-user"&gt;v-easonf-msft&lt;/a&gt;&amp;nbsp;, when replicating this logic it gives me different values the moment i drag in a column that makes the products id repeat? idk if it has to do with the all except since product ID is also coming from product table (so i have 2 table (dimensions) Product and Date then i have my (fact) table connecting to both)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:48:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline-Value-Grouped-on-Category-ID/m-p/2936197#M96783</guid>
      <dc:creator>Euro0681</dc:creator>
      <dc:date>2022-11-29T14:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Static Baseline Value (Grouped on Category ID)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline-Value-Grouped-on-Category-ID/m-p/2936259#M96793</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="192401" data-lia-user-login="v-easonf-msft" class="lia-mention lia-mention-user"&gt;v-easonf-msft&lt;/a&gt;&amp;nbsp;After Modifying the Calculation you provided I got it to work thanks! You can Ignore my previous replies. (Marked as solution)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 15:09:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Static-Baseline-Value-Grouped-on-Category-ID/m-p/2936259#M96793</guid>
      <dc:creator>Euro0681</dc:creator>
      <dc:date>2022-11-29T15:09:43Z</dc:date>
    </item>
  </channel>
</rss>

