<?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: SUMMARIZECOLUMN and SUMX but as Calculated Measure in Calculated Table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMMARIZECOLUMN-and-SUMX-but-as-Calculated-Measure-in-Calculated/m-p/2592738#M74726</link>
    <description>&lt;P&gt;I believe I updated the original post just now, but also here are links to the requested exampl pbix and data files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link to pbix file:&amp;nbsp;&lt;A href="https://1drv.ms/u/s!AoMPf3EDnd3jmwNSu9lEcOAjbP_H?e=KQUCPh" target="_blank"&gt;https://1drv.ms/u/s!AoMPf3EDnd3jmwNSu9lEcOAjbP_H?e=KQUCPh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Link to data file:&amp;nbsp;&lt;A href="https://1drv.ms/u/s!AoMPf3EDnd3jmwT8dkeHkwiIvr_0?e=j9ziBd" target="_blank"&gt;https://1drv.ms/u/s!AoMPf3EDnd3jmwT8dkeHkwiIvr_0?e=j9ziBd&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jun 2022 15:49:27 GMT</pubDate>
    <dc:creator>peterpbosse</dc:creator>
    <dc:date>2022-06-21T15:49:27Z</dc:date>
    <item>
      <title>SUMMARIZECOLUMN and SUMX but as Calculated Measure in Calculated Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMMARIZECOLUMN-and-SUMX-but-as-Calculated-Measure-in-Calculated/m-p/2583787#M74237</link>
      <description>&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;Link to pbix file:&amp;nbsp;&lt;A href="https://1drv.ms/u/s!AoMPf3EDnd3jmwNSu9lEcOAjbP_H?e=KQUCPh" target="_blank"&gt;https://1drv.ms/u/s!AoMPf3EDnd3jmwNSu9lEcOAjbP_H?e=KQUCPh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Link to data file:&amp;nbsp;&lt;A href="https://1drv.ms/u/s!AoMPf3EDnd3jmwT8dkeHkwiIvr_0?e=j9ziBd" target="_blank"&gt;https://1drv.ms/u/s!AoMPf3EDnd3jmwT8dkeHkwiIvr_0?e=j9ziBd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data source table [Shift_Data] with downtime information (event length of time, category, shift information, timestamp, etc) used to generate a calculated table [OEE_Data] that sums the amount of time for each category of each shift (Ex: Idle Time), performance metrics are also calculated in the calculated table (Ex: % OEE).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was given a request to implement an exclusion slicer as a “what if” scenario analyzer (If we eliminate X downtime category what would the performance metric look like).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to implement the exclusion slicer with a calculated value in the source table that is either the reported length of time or 0 if the slicer category is selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the values in the calculated table do not update as they are generated at time of loading and dataset refresh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attempts to write queries similar to that in the calculated table formation as a new measure either do not calculate or yield a single value for all the shift-codes that does not update based on the exclusion slicer value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;“Shift_Data”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measures:&lt;/P&gt;&lt;P&gt;Shift_Code; identifier/key for each shift, repeated for each reported downtime record on a given shift&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Time(min); reported amount of downtime for a given event on a shift (multiple per shift)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BOEE Code; Categorization of Downtime Type (OEE Types)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondary; Categorization of Downtime Category (Process specific reasons)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;isExcluded; Identifier if slicer category is selected, dynamically updates&lt;/P&gt;&lt;P&gt;isExcluded = if(MAX(Shift_Data[Secondary]) in ALLSELECTED(Secondary[Secondary]) &amp;amp;&amp;amp; COUNTROWS(ALLSELECTED(Secondary))&amp;lt;&amp;gt;COUNTROWS(ALL(Secondary)),1,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Time_Exclude; calculated measure equal to Time (min) value or 0 if isExcluded&lt;/P&gt;&lt;P&gt;Time_Exclude = VAR FilterSecondary = FILTER(Shift_Data,[isExcluded]=0) return CALCULATE(SUM(Shift_Data[Time (min)]),FilterSecondary)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;“OEE_Data”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OEE_Data =&lt;/P&gt;&lt;P&gt;SUMMARIZECOLUMNS(Shift_Data[Shift-Code],&lt;BR /&gt;"Avg_Line_Speed_fpm", AVERAGE(Shift_Data[Act Line Speed (fpm)]), "Idle_Time_mins",SUMX(FILTER(Shift_Data,Shift_Data[BOEE Code]="IT"),[Time_Exclude])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{Note: This is not the entire length of the table generation query, just an excerpt of general usage of SUMX and Average to generate table}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measures:&lt;/P&gt;&lt;P&gt;Below is one of my attempts to calculate Idle_Time_mins_excluded inside of OEE_Data table as a new measure based on selected exclude slicer that is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Idle_Time_mins_Exclude =&lt;/P&gt;&lt;P&gt;CALCULATE (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM ( Shift_Data[Time (min)] ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILTER (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; All( Shift_Data ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Shift_Data[BOEE Code]="IT"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exclude slicer functions as expected on Time_Exclude value in Shift_Data table&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OEE_Data table values sum by Shift_Data[Shift_Code] at time of table creation, but is not for excluded Shift_Data[Time_Excluded] values.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 15:48:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMMARIZECOLUMN-and-SUMX-but-as-Calculated-Measure-in-Calculated/m-p/2583787#M74237</guid>
      <dc:creator>peterpbosse</dc:creator>
      <dc:date>2022-06-21T15:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: SUMMARIZECOLUMN and SUMX but as Calculated Measure in Calculated Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMMARIZECOLUMN-and-SUMX-but-as-Calculated-Measure-in-Calculated/m-p/2590667#M74623</link>
      <description>&lt;P&gt;Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to assist you. I cannot use screenshots of your source data.&lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 01:06:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMMARIZECOLUMN-and-SUMX-but-as-Calculated-Measure-in-Calculated/m-p/2590667#M74623</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-06-21T01:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: SUMMARIZECOLUMN and SUMX but as Calculated Measure in Calculated Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMMARIZECOLUMN-and-SUMX-but-as-Calculated-Measure-in-Calculated/m-p/2592738#M74726</link>
      <description>&lt;P&gt;I believe I updated the original post just now, but also here are links to the requested exampl pbix and data files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link to pbix file:&amp;nbsp;&lt;A href="https://1drv.ms/u/s!AoMPf3EDnd3jmwNSu9lEcOAjbP_H?e=KQUCPh" target="_blank"&gt;https://1drv.ms/u/s!AoMPf3EDnd3jmwNSu9lEcOAjbP_H?e=KQUCPh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Link to data file:&amp;nbsp;&lt;A href="https://1drv.ms/u/s!AoMPf3EDnd3jmwT8dkeHkwiIvr_0?e=j9ziBd" target="_blank"&gt;https://1drv.ms/u/s!AoMPf3EDnd3jmwT8dkeHkwiIvr_0?e=j9ziBd&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 15:49:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMMARIZECOLUMN-and-SUMX-but-as-Calculated-Measure-in-Calculated/m-p/2592738#M74726</guid>
      <dc:creator>peterpbosse</dc:creator>
      <dc:date>2022-06-21T15:49:27Z</dc:date>
    </item>
  </channel>
</rss>

