<?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: CALCULATE function result changes by using slicer in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3833181#M1237726</link>
    <description>&lt;P&gt;&lt;SPAN&gt;As far as I understand, if the filter is applied to the same column that is also used in the slicer, the slicer's selection should be overwritten by the calculate filter.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maybe try also this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Process Time B =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;AVERAGE(&lt;BR /&gt;TableX[Process Time]&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;Filter(All(TableX),&lt;BR /&gt;TableX[Product] = "B",)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2024 08:46:41 GMT</pubDate>
    <dc:creator>Gabry</dc:creator>
    <dc:date>2024-04-12T08:46:41Z</dc:date>
    <item>
      <title>CALCULATE function result changes by using slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3830929#M1237199</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you can help, I think it is just a matter of understanding the filter in CALCULATE.&lt;/P&gt;&lt;P&gt;I am currently using a calculate function and I can´t explain the result myself. For example in the following measure I want to calculate the average of all process times for product type "B".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Process Time B = 
CALCULATE(
    AVERAGE(
        TableX[Process Time]
    ), 
    TableX[Product] = "B"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general and without other slicers the results seems right (let´s say 6,5h). But once I add a slicer, e.g. for product type, and select other product types than "B" the value changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My understanding though was that CALCULATE overrules any other filters. So I expected the card-visual for "Process Time B" to show 6,5h regardless of the settings in the product-type-slicer, because it is "Product B"-specific. Nevertheless, the result for Process Time B changes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can that be? I would appreciate any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 12:55:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3830929#M1237199</guid>
      <dc:creator>nick1097</dc:creator>
      <dc:date>2024-04-11T12:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function result changes by using slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3830957#M1237206</link>
      <description>&lt;P&gt;Do you have a DIM tabel or you are just filtering from the fact column table?&lt;/P&gt;&lt;P&gt;Tablex is the fact or the dim?&lt;/P&gt;&lt;P&gt;Paste the screen of the model.&lt;/P&gt;&lt;P&gt;Anyway you probably need to put an all somewhere, maybe on the dim table&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 12:59:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3830957#M1237206</guid>
      <dc:creator>Gabry</dc:creator>
      <dc:date>2024-04-11T12:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function result changes by using slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3830982#M1237214</link>
      <description>&lt;P&gt;The data model is really simple. All data for this described case is in the fact table (TableX). I am not using data from dimension tables.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 13:05:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3830982#M1237214</guid>
      <dc:creator>nick1097</dc:creator>
      <dc:date>2024-04-11T13:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function result changes by using slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3830991#M1237216</link>
      <description>&lt;P&gt;just try this then&lt;BR /&gt;Process Time B =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;AVERAGE(&lt;BR /&gt;TableX[Process Time]&lt;BR /&gt;),&lt;BR /&gt;TableX[Product] = "B",&lt;/P&gt;&lt;P&gt;All(TableX)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 13:07:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3830991#M1237216</guid>
      <dc:creator>Gabry</dc:creator>
      <dc:date>2024-04-11T13:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function result changes by using slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3831038#M1237225</link>
      <description>&lt;P&gt;I tried. Using All(TableX) as another Filter in CALCULATE unfortunately leads to no filtering at all.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 13:20:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3831038#M1237225</guid>
      <dc:creator>nick1097</dc:creator>
      <dc:date>2024-04-11T13:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function result changes by using slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3831062#M1237233</link>
      <description>&lt;P&gt;What is the column you are using as the filter in the slicer?&lt;/P&gt;&lt;P&gt;put ALL on that column&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 13:31:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3831062#M1237233</guid>
      <dc:creator>Gabry</dc:creator>
      <dc:date>2024-04-11T13:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function result changes by using slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3833125#M1237712</link>
      <description>&lt;P&gt;It doesn´t solve it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But maybe back to my &lt;U&gt;original question&lt;/U&gt;: Why does the slicer (Product Type) affect the result of my CALCULATE function, where I already filtered product type to be "B"? For example when I am slicing product type "A" only.&lt;/P&gt;&lt;P&gt;Side note: When I am slicing product type "A" &lt;U&gt;and&lt;/U&gt; "B" the value is correct again (like slicing product type "B" only).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand that other filters have influence on the measure. But since product type is already filtered in the measure, I expected the measure to overrule the product type slicer at least.&lt;/P&gt;&lt;P&gt;In the example: I expected the correct value. But instead it is a value not far from the correct one and I can´t explain that.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 08:21:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3833125#M1237712</guid>
      <dc:creator>nick1097</dc:creator>
      <dc:date>2024-04-12T08:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function result changes by using slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3833181#M1237726</link>
      <description>&lt;P&gt;&lt;SPAN&gt;As far as I understand, if the filter is applied to the same column that is also used in the slicer, the slicer's selection should be overwritten by the calculate filter.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maybe try also this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Process Time B =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;AVERAGE(&lt;BR /&gt;TableX[Process Time]&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;Filter(All(TableX),&lt;BR /&gt;TableX[Product] = "B",)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 08:46:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3833181#M1237726</guid>
      <dc:creator>Gabry</dc:creator>
      <dc:date>2024-04-12T08:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function result changes by using slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3833248#M1237737</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Again, this leads to no filtering at all.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 09:04:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3833248#M1237737</guid>
      <dc:creator>nick1097</dc:creator>
      <dc:date>2024-04-12T09:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function result changes by using slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3833563#M1237790</link>
      <description>&lt;P&gt;Process Time B =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;AVERAGE(&lt;BR /&gt;TableX[Process Time]&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;Filter(All(TableX[Product]),&lt;BR /&gt;TableX[Product] = "B",)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;if not paste the pbix&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 10:52:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3833563#M1237790</guid>
      <dc:creator>Gabry</dc:creator>
      <dc:date>2024-04-12T10:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function result changes by using slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3833811#M1237831</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;That works!&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any possibility to do that without a FILTER-function to save performance? That was also my initial objective.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 14:22:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3833811#M1237831</guid>
      <dc:creator>nick1097</dc:creator>
      <dc:date>2024-04-12T14:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function result changes by using slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3833994#M1237858</link>
      <description>&lt;P&gt;Already tried this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Process Time B =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;AVERAGE(&lt;BR /&gt;TableX[Process Time]&lt;BR /&gt;),&lt;/P&gt;&lt;P&gt;All(TableX[Product]),&lt;BR /&gt;TableX[Product] = "B"&lt;/P&gt;&lt;P&gt;)&lt;BR /&gt;&lt;BR /&gt;Do you really have performance issue using filter or it's just speculation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As i know every filter put in the calculate functions&amp;nbsp;&lt;SPAN&gt;it gets converted behind the scenes in a filter so&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 12:41:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3833994#M1237858</guid>
      <dc:creator>Gabry</dc:creator>
      <dc:date>2024-04-12T12:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function result changes by using slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3834278#M1237926</link>
      <description>&lt;P&gt;First of all, thank you for your time and help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this already. With that it shows the same values like the original code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Process Time B = 
CALCULATE(
    AVERAGE(
        TableX[Process Time]
    ), 
    TableX[Product] = "B"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 14:20:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3834278#M1237926</guid>
      <dc:creator>nick1097</dc:creator>
      <dc:date>2024-04-12T14:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function result changes by using slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3834281#M1237927</link>
      <description>&lt;P&gt;I oversaw something. It doesn´t work after all.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 14:22:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3834281#M1237927</guid>
      <dc:creator>nick1097</dc:creator>
      <dc:date>2024-04-12T14:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function result changes by using slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3834302#M1237936</link>
      <description>&lt;P&gt;Sounds really strange to me. Maybe paste the pbix I don't know&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 14:37:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3834302#M1237936</guid>
      <dc:creator>Gabry</dc:creator>
      <dc:date>2024-04-12T14:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE function result changes by using slicer</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3838433#M1238851</link>
      <description>&lt;P&gt;I found the problem. The value was influenced by the date-slicer, that was referencing the date column of the fact table. Since I created a date dimension table and changed the reference of the slicer, it works with only a CALCULATE function!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 13:27:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/CALCULATE-function-result-changes-by-using-slicer/m-p/3838433#M1238851</guid>
      <dc:creator>nick1097</dc:creator>
      <dc:date>2024-04-15T13:27:45Z</dc:date>
    </item>
  </channel>
</rss>

