<?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: Boolean Column: SLA's Missed within the Current Year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Boolean-Column-SLA-s-Missed-within-the-Current-Year/m-p/1282707#M21908</link>
    <description>&lt;P&gt;Had to tweak this a bit to make Date submitted the active relationship, but this now works.&amp;nbsp; Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Taylor&lt;/P&gt;</description>
    <pubDate>Sun, 09 Aug 2020 19:26:10 GMT</pubDate>
    <dc:creator>TaylorClose</dc:creator>
    <dc:date>2020-08-09T19:26:10Z</dc:date>
    <item>
      <title>Boolean Column: SLA's Missed within the Current Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Boolean-Column-SLA-s-Missed-within-the-Current-Year/m-p/1280914#M21848</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a column for a customer account table that calculates how many tickets in a separate table have the status "SLA Missed" and were submitted within the current year, and evaluates to "True" if the number is greater than 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tables:&lt;BR /&gt;&lt;STRONG&gt;'Excel - Ticket Data'&lt;/STRONG&gt;&amp;nbsp;- Contains a line per ticket&lt;BR /&gt;&lt;STRONG&gt;'Calendar'&lt;/STRONG&gt; - Normal Calendar Table&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Columns:&lt;BR /&gt;&lt;STRONG&gt;'Calendar'[Date]&lt;/STRONG&gt; - Has normal dates within it.&lt;BR /&gt;&lt;STRONG&gt;'Excel - Ticket Data'[Was SLA ever missed?&lt;/STRONG&gt; - Has the values "Yes" and "No" within it&lt;BR /&gt;&lt;STRONG&gt;'Excel - Ticket Data'[Date Submitted]&lt;/STRONG&gt; - Has normal dates within it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first attempt at the calculation for the new column is as such:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HAS MISSED SLAS = CALCULATE(COUNTROWS('Excel - Ticket Data'), AND(FILTER('Excel - Ticket Data','Excel - Ticket Data'[Was SLA ever missed?] = "Yes"), FILTER('Excel - Ticket Data', 'Excel - Ticket Data'[Date Submitted] = DATESINPERIOD('Calendar'[Date],1/1/2020, 12, MONTH)))) &amp;gt; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The desired result is a boolean column at the account level that returns a "True" if there are tickets past SLA within the year, and "False" if not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 17:38:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Boolean-Column-SLA-s-Missed-within-the-Current-Year/m-p/1280914#M21848</guid>
      <dc:creator>TaylorClose</dc:creator>
      <dc:date>2020-08-07T17:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Boolean Column: SLA's Missed within the Current Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Boolean-Column-SLA-s-Missed-within-the-Current-Year/m-p/1281186#M21851</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="251575" data-lia-user-login="TaylorClose" class="lia-mention lia-mention-user"&gt;TaylorClose&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I modified your formula as: You can change the date&amp;nbsp;"1/1/2020" to today to get the past 12 months if you need it.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;HAS MISSED SLAS = 

VAR _COUNT = 
    CALCULATE(
        COUNTROWS('Excel - Ticket Data'), 
        'Excel - Ticket Data'[Was SLA ever missed?] = "Yes", 
        DATESINPERIOD('Calendar'[Date],"1/1/2020", -12, MONTH)
    )
RETURN

  IF(
      _COUNT &amp;gt; 0,
      TRUE(),
      FALSE()
  )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;Did I answer your question? Mark this post as a solution, this will help others!.&lt;/P&gt;&lt;P&gt;Click on the Thumbs-Up icon on the right if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;YouTube, &lt;/A&gt;&lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;LinkedIn&lt;/A&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 20:36:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Boolean-Column-SLA-s-Missed-within-the-Current-Year/m-p/1281186#M21851</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-08-07T20:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Boolean Column: SLA's Missed within the Current Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Boolean-Column-SLA-s-Missed-within-the-Current-Year/m-p/1282707#M21908</link>
      <description>&lt;P&gt;Had to tweak this a bit to make Date submitted the active relationship, but this now works.&amp;nbsp; Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Taylor&lt;/P&gt;</description>
      <pubDate>Sun, 09 Aug 2020 19:26:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Boolean-Column-SLA-s-Missed-within-the-Current-Year/m-p/1282707#M21908</guid>
      <dc:creator>TaylorClose</dc:creator>
      <dc:date>2020-08-09T19:26:10Z</dc:date>
    </item>
  </channel>
</rss>

