<?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(Sum([PRODUCTION_HOURS])) not with a filter but with a value limiter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-PRODUCTION-HOURS-not-with-a-filter-but-with-a/m-p/2572461#M73526</link>
    <description>&lt;P&gt;I'm guessing there's an additonal assertion here that your solution requires a second column? Seems like it works, but I'd love a cleaner solution if one existed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jun 2022 19:35:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-10T19:35:42Z</dc:date>
    <item>
      <title>Calculate(Sum([PRODUCTION_HOURS])) not with a filter but with a value limiter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-PRODUCTION-HOURS-not-with-a-filter-but-with-a/m-p/2572441#M73521</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I have a calculated column &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier" color="#339966"&gt;&lt;SPAN&gt;c.SHIFT_PROD_HOURS = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CO_PROD_INFO[PROD_HRS_MOD]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;CO_PROD_INFO[MFG_TYPE]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"INJECTION"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I need to sum PROD_HRS_MOD. My problem is that when our ERP system goes down but the machines are still running that production time get rolled into whatever shift we're in when the system comes back online. This leads to values like 14.5 hours of production in a single shift, which is impossible because we run three eights. &lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;The solution my production manager came up with that I am now trying to recreate in BI is to cap production hours at 8, ignore the extra hours, and record the shift where the database was down as "N/A"&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;So, I can't just filter out rows with PROD_HRS &amp;gt; 8. Rather, I need something that replaces any value over 8 with 8. I can't implement this higher in the data pipeline because I need the real PROD_HRS values for other calculations.&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Jun 2022 19:19:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-PRODUCTION-HOURS-not-with-a-filter-but-with-a/m-p/2572441#M73521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-10T19:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate(Sum([PRODUCTION_HOURS])) not with a filter but with a value limiter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-PRODUCTION-HOURS-not-with-a-filter-but-with-a/m-p/2572445#M73522</link>
      <description>&lt;P&gt;ADD COLNUM&lt;/P&gt;&lt;P&gt;min(&lt;SPAN&gt;CO_PROD_INFO[PROD_HRS_MOD],8)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 19:21:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-PRODUCTION-HOURS-not-with-a-filter-but-with-a/m-p/2572445#M73522</guid>
      <dc:creator>vapid128</dc:creator>
      <dc:date>2022-06-10T19:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate(Sum([PRODUCTION_HOURS])) not with a filter but with a value limiter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-PRODUCTION-HOURS-not-with-a-filter-but-with-a/m-p/2572461#M73526</link>
      <description>&lt;P&gt;I'm guessing there's an additonal assertion here that your solution requires a second column? Seems like it works, but I'd love a cleaner solution if one existed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 19:35:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-PRODUCTION-HOURS-not-with-a-filter-but-with-a/m-p/2572461#M73526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-10T19:35:42Z</dc:date>
    </item>
  </channel>
</rss>

