<?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 Measure to show count of items after another column date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-show-count-of-items-after-another-column-date/m-p/3239889#M119166</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if someone can help me with this as I have been working on it for a while with limited success!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to write a measure to show how many courses an instructor has taught since their last assessment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My columns are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Table1' [Last Instructor Check]&lt;/P&gt;&lt;P&gt;'Table2' [Total Courses] (a measured column combining 2 types of courses so not sure if table name needed)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The complication for me is that using this measure I need to create conditioning based on the [Instructor Risk Level] (contains values H, M, L)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;IF an instructor is Low Risk [Instructor Risk Level]= L, the column background should be green until that instructor has taught 6 courses since [Last Instructor Check], then change to red&lt;/LI&gt;&lt;LI&gt;IF an instructor is Medium Risk [Instructor Risk Level]= M, the column background should be green until that instructor has taught 3 courses since [Last Instructor Check], then change to red&lt;/LI&gt;&lt;LI&gt;IF an instructor is High Risk [Instructor Risk Level]= H, the column background should always be red.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this achievable in PowerBi?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 May 2023 09:41:07 GMT</pubDate>
    <dc:creator>CSJ123</dc:creator>
    <dc:date>2023-05-17T09:41:07Z</dc:date>
    <item>
      <title>Measure to show count of items after another column date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-show-count-of-items-after-another-column-date/m-p/3239889#M119166</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if someone can help me with this as I have been working on it for a while with limited success!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to write a measure to show how many courses an instructor has taught since their last assessment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My columns are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Table1' [Last Instructor Check]&lt;/P&gt;&lt;P&gt;'Table2' [Total Courses] (a measured column combining 2 types of courses so not sure if table name needed)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The complication for me is that using this measure I need to create conditioning based on the [Instructor Risk Level] (contains values H, M, L)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;IF an instructor is Low Risk [Instructor Risk Level]= L, the column background should be green until that instructor has taught 6 courses since [Last Instructor Check], then change to red&lt;/LI&gt;&lt;LI&gt;IF an instructor is Medium Risk [Instructor Risk Level]= M, the column background should be green until that instructor has taught 3 courses since [Last Instructor Check], then change to red&lt;/LI&gt;&lt;LI&gt;IF an instructor is High Risk [Instructor Risk Level]= H, the column background should always be red.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this achievable in PowerBi?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 09:41:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-show-count-of-items-after-another-column-date/m-p/3239889#M119166</guid>
      <dc:creator>CSJ123</dc:creator>
      <dc:date>2023-05-17T09:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to show count of items after another column date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-show-count-of-items-after-another-column-date/m-p/3243633#M119409</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="500155" data-lia-user-login="CSJ123" class="lia-mention lia-mention-user"&gt;CSJ123&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please hvae a try.&lt;/P&gt;
&lt;P&gt;Create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;measure =
SWITCH (
    TRUE (),
    [Instructor Risk Level] = "L"
        &amp;amp;&amp;amp; [Last Instructor Check] &amp;lt; 6, "Green",
    [Instructor Risk Level] = "L"
        &amp;amp;&amp;amp; [Last Instructor Check] = 6, "Red",
    [Instructor Risk Level] = "M"
        &amp;amp;&amp;amp; [Last Instructor Check] &amp;lt; 3, "Green",
    [Instructor Risk Level] = "M"
        &amp;amp;&amp;amp; [Last Instructor Check] = 3, "Red",
    [Instructor Risk Level] = "H", "Red",
    BLANK ()
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;Community Support Team _ Rongtie&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 05:12:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-show-count-of-items-after-another-column-date/m-p/3243633#M119409</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-19T05:12:05Z</dc:date>
    </item>
  </channel>
</rss>

