<?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 calculate total amount ignoring filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4306514#M171012</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="822257" data-lia-user-login="NT2" class="lia-mention lia-mention-user"&gt;NT2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Solution provided based on the given scenario. It is always recommended to give right scenario for right output. However, if your dimention table is connected to the fact table, you should use allexcept(dim table, column1, column2) like this. This will work. Else, please share right scenario with sample data.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Nov 2024 16:56:02 GMT</pubDate>
    <dc:creator>Rupak_bi</dc:creator>
    <dc:date>2024-11-28T16:56:02Z</dc:date>
    <item>
      <title>Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4304850#M170935</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello, I am working with a Power BI report and have a fact table that is related to two dimension tables: store and product. The fact table contains the following columns:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;store (foreign key to store table),&lt;/LI&gt;&lt;LI&gt;product (foreign key to product table),&lt;/LI&gt;&lt;LI&gt;amount.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I need to create a measure that calculates the &lt;STRONG&gt;total sum of amount&lt;/STRONG&gt; by store, &lt;STRONG&gt;regardless of the product&lt;/STRONG&gt;&amp;nbsp;or any other table, values in the visual. Specifically:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;For any value in store, I want to see the sum of the amount column for all rows related to that store, ignoring the product filter&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;Example:&lt;/H3&gt;&lt;P&gt;Given the following data in the fact table:&lt;/P&gt;store product amount &lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Store A&lt;/TD&gt;&lt;TD&gt;Product X&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Store A&lt;/TD&gt;&lt;TD&gt;Product Y&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Store B&lt;/TD&gt;&lt;TD&gt;Product Z&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Store A&lt;/TD&gt;&lt;TD&gt;Product X&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Store A&lt;/TD&gt;&lt;TD&gt;Product Y&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Need to put in the visual column from store, product and the measure&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;For store = Store A&lt;/STRONG&gt;, the total amount should be: 5 + 8 + 8 + 8 = 29, which is the sum of all rows where store = Store A, regardless of the selected product.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;For store = Store B&lt;/STRONG&gt;, the total amount should be: 3, as there is only one row where store = Store B.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;But when I created a measure using all products, I am getting incorrect result, where &lt;STRONG&gt;each store is multiplied by each product&lt;/STRONG&gt; row. This is not showing the real products by store.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;I have tried using CALCULATE with ALLEXCEPT, but the results are not as expected. The total still appears to be filtered by product in the visual, causing incorrect totals.&lt;/P&gt;&lt;P&gt;Can anyone help me achieve the correct DAX measure to get the total sum by store while ignoring product filters and preventing the incorrect multiplication of rows in the visual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected Output Table:&lt;/P&gt;&lt;P&gt;Store Product Total Amount by Store&lt;/P&gt;&lt;P&gt;Store A Product X 29&lt;/P&gt;&lt;P&gt;Store A Product Y 29&lt;/P&gt;&lt;P&gt;Store B Product Z 3&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Nov 2024 21:23:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4304850#M170935</guid>
      <dc:creator>NT2</dc:creator>
      <dc:date>2024-11-27T21:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4304928#M170941</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="822257" data-lia-user-login="NT2" class="lia-mention lia-mention-user"&gt;NT2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try like:&lt;/P&gt;
&lt;P&gt;measure =&lt;/P&gt;
&lt;P&gt;CALCULATE(&lt;/P&gt;
&lt;P&gt;SUM(fact[amount]),&lt;/P&gt;
&lt;P&gt;ALL(fact),&lt;/P&gt;
&lt;P&gt;VALUES(fact[store])&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 23:29:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4304928#M170941</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2024-11-27T23:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4304955#M170943</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="822257" data-lia-user-login="NT2" class="lia-mention lia-mention-user"&gt;NT2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this:&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;Total Amount by Store =
CALCULATE(
    SUM('FactTable'[amount]),
    REMOVEFILTERS('Product')
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;STRONG&gt; helps&lt;/STRONG&gt;, please consider &lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank" rel="noopener noreferrer"&gt;LinkedIn&lt;/A&gt;|&lt;A href="https://twitter.com/VahidDMcom" target="_blank" rel="noopener noreferrer"&gt;Twitter&lt;/A&gt;|&lt;A href="https://www.vahiddm.com/" target="_blank" rel="noopener noreferrer"&gt;Blog&amp;nbsp;&lt;/A&gt;|&lt;A href="https://www.youtube.com/@databis" target="_blank" rel="noopener noreferrer"&gt;YouTube&lt;/A&gt;&lt;A href="https://www.youtube.com/@databis" target="_blank" rel="noopener noreferrer"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2024 23:59:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4304955#M170943</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2024-11-27T23:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4304969#M170944</link>
      <description>&lt;P&gt;Hello, yes I tried this but this code caused each store to be multiplied by each row of products table, I had each store 6 times because in the table product I have 6 rows products, while I should see in the visual only 3rows (store A with product x another row with product y, store B with product Z) based on the example I provided&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 00:20:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4304969#M170944</guid>
      <dc:creator>NT2</dc:creator>
      <dc:date>2024-11-28T00:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4304971#M170945</link>
      <description>&lt;P&gt;Hello, I already tested this an I did not get the result I was waiting for.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 00:21:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4304971#M170945</guid>
      <dc:creator>NT2</dc:creator>
      <dc:date>2024-11-28T00:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4304988#M170947</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="822257" data-lia-user-login="NT2" class="lia-mention lia-mention-user"&gt;NT2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Amount by Store =
CALCULATE(
    SUM('FactTable'[amount]),
    FILTER(
        ALL('FactTable'),
        'FactTable'[store] = MAX('FactTable'[store])
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if it works, then you can change the&amp;nbsp; ALL('FactTable') to columns to improve the performance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;STRONG&gt; helps&lt;/STRONG&gt;, please consider &lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank" rel="noopener noreferrer"&gt;LinkedIn&lt;/A&gt;|&lt;A href="https://twitter.com/VahidDMcom" target="_blank" rel="noopener noreferrer"&gt;Twitter&lt;/A&gt;|&lt;A href="https://www.vahiddm.com/" target="_blank" rel="noopener noreferrer"&gt;Blog&amp;nbsp;&lt;/A&gt;|&lt;A href="https://www.youtube.com/@databis" target="_blank" rel="noopener noreferrer"&gt;YouTube&lt;/A&gt;&lt;A href="https://www.youtube.com/@databis" target="_blank" rel="noopener noreferrer"&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 00:40:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4304988#M170947</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2024-11-28T00:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4305026#M170949</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="822257" data-lia-user-login="NT2" class="lia-mention lia-mention-user"&gt;NT2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;could you tell more about "each store is multiplied by each product row"?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 01:24:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4305026#M170949</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2024-11-28T01:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4305820#M170972</link>
      <description>&lt;P&gt;Hello, I was going to reply but I click on a accept as solution by mistake, the measure you provided me did not multiply each store by product but the amount is not what I needed it gave me the amount by product and store.&lt;/P&gt;&lt;P&gt;When I said caused each store to be multiplied by product I meant :&amp;nbsp;&lt;/P&gt;&lt;P&gt;I put the product from dimension product and store from dimension store ok and a new measure I tested by remove filters and all for product you see each store I have in the fact I saw in the visual many rows 6 times for each product I have in the product dimension.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you a lot for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 10:53:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4305820#M170972</guid>
      <dc:creator>NT2</dc:creator>
      <dc:date>2024-11-28T10:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4305843#M170974</link>
      <description>&lt;P&gt;Thank you for you help, I think this will works for me, because now the Store is not multiplied by the product but I still have a problem the total I see in the meaure is not correct. I tested with sumx but did not gave me 29+29+3.&lt;/P&gt;&lt;P&gt;I made some adjustment to the model now the concatenation of column location and store is the primary key of the table store,&amp;nbsp; so in the fact table I added a new column Store and location and now I use this column in the measure you provided me but now I see the amount by store and location and I want the total to be by Store even if we have many location.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 16:12:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4305843#M170974</guid>
      <dc:creator>NT2</dc:creator>
      <dc:date>2024-11-28T16:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4306304#M170993</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="822257" data-lia-user-login="NT2" class="lia-mention lia-mention-user"&gt;NT2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Are you searching for a result like this??&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;if yes, than accept as solution.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 13:35:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4306304#M170993</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-11-28T13:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4306442#M171006</link>
      <description>&lt;P&gt;Hello yes I need something like that but the column customer and product need to be taken from the dimension not the fact table because I tried to work with allexpect the amount I got wa multiplied by each product. Th final total need to be 29+29+3.&lt;/P&gt;&lt;P&gt;Thank you a lot for your answer.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 15:48:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4306442#M171006</guid>
      <dc:creator>NT2</dc:creator>
      <dc:date>2024-11-28T15:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4306514#M171012</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="822257" data-lia-user-login="NT2" class="lia-mention lia-mention-user"&gt;NT2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Solution provided based on the given scenario. It is always recommended to give right scenario for right output. However, if your dimention table is connected to the fact table, you should use allexcept(dim table, column1, column2) like this. This will work. Else, please share right scenario with sample data.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 16:56:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4306514#M171012</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-11-28T16:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4306532#M171013</link>
      <description>&lt;P&gt;Yes based on the scenario I gave this did not work for me I tested all expect but did not gave me the correct result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 22:23:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4306532#M171013</guid>
      <dc:creator>NT2</dc:creator>
      <dc:date>2024-11-28T22:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4306803#M171018</link>
      <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Thanks for the reply from Rupak_bi&amp;nbsp;,FreemanZ&amp;nbsp; and VahidDM&amp;nbsp;, please allow me to provide another insight:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="822257" data-lia-user-login="NT2" class="lia-mention lia-mention-user"&gt;NT2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Regarding your question, I have provided the following two solutions:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Firstly, create the following calculated table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 = 
SUMMARIZE(
        'Table',
        'Table'[store],
        'Table'[product],
        "amount", CALCULATE(
            SUM('Table'[amount]),
            FILTER(
                ALLSELECTED('Table'),
                'Table'[store] = MAX('Table'[store])
            )
        )
    )&lt;/LI-CODE&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;The result is as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Secondly, use the following measures:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR cc = 
    SUMMARIZE(
        'Table',
        'Table'[store],
        'Table'[product],
        "kk2", CALCULATE(
            SUM('Table'[amount]),
            FILTER(
                ALLSELECTED('Table'),
                'Table'[store] = MAX('Table'[store])
            )
        )
    )
VAR cc1 = 
    IF(
        HASONEVALUE('Table'[store]),
        CALCULATE(
            SUM('Table'[amount]),
            FILTER(
                ALLSELECTED('Table'),
                'Table'[store] = MAX('Table'[store])
            )
        ),
        SUMX(cc, [kk2])
    )
RETURN 
    cc1
&lt;/LI-CODE&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;The result is as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Please find the attached pbix relevant to the case.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post &lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;help&lt;/STRONG&gt;&lt;/EM&gt;s&lt;/SPAN&gt;, then please consider Accept it &lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;as the solutio&lt;/STRONG&gt;&lt;/EM&gt;n &lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 02:40:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4306803#M171018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-29T02:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4307313#M171049</link>
      <description>&lt;P&gt;Thank you a lot for your help, but as I mentioned the columns of product and store need to be used from a dimension table&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Need to put in the visual column from store, product and the measure......&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 29 Nov 2024 09:07:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4307313#M171049</guid>
      <dc:creator>NT2</dc:creator>
      <dc:date>2024-11-29T09:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4307711#M171071</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="822257" data-lia-user-login="NT2" class="lia-mention lia-mention-user"&gt;NT2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;As per My understanding, this will not work if you use product and stroe from different table along with measure. However, My point is&lt;BR /&gt;1. If you already have Store and product in the fatc table, why **bleep** you use that in the matrix?&lt;BR /&gt;2. This can also be done in a calculated column same way and then can be referred in the matrix and that will wotk with stroe and product from dimentions. Why to use Measure??&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 13:51:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4307711#M171071</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-11-29T13:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4308104#M171098</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1 Because I have more than one fact table. That I will need to put it in the visual&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2 if I will do it as a calculated column I will have a wrong total&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2024 00:32:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4308104#M171098</guid>
      <dc:creator>NT2</dc:creator>
      <dc:date>2024-11-30T00:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4308230#M171103</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="822257" data-lia-user-login="NT2" class="lia-mention lia-mention-user"&gt;NT2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;A calculated column along with a measure will work. Please see below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Let me know if this approach works. Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 30 Nov 2024 07:17:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4308230#M171103</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-11-30T07:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dax calculate total amount ignoring filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4308892#M171117</link>
      <description>&lt;P&gt;HI,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="822257" data-lia-user-login="NT2" class="lia-mention lia-mention-user"&gt;NT2&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try below approach&lt;BR /&gt;As we know in Microsoft Table and Matrix total are broken since long time so we need to work around to acheive desire result&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Amount =
sumx(
summarizecolumn('store'[store column],'Product'[Product Column]),
CALCULATE(
    SUM('FactTable'[amount]),
    REMOVEFILTERS('Product'[Product Column]))
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Please vote for&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;'s Idea&lt;BR /&gt;&lt;SPAN&gt;Please vote for this idea:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e" target="_blank" rel="nofollow noopener noreferrer"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=082203f1-594f-4ba7-ac87-bb91096c742e&lt;/A&gt; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Dangar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Dec 2024 17:27:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-calculate-total-amount-ignoring-filter/m-p/4308892#M171117</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-12-01T17:27:34Z</dc:date>
    </item>
  </channel>
</rss>

