<?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 Dynamic Groups for Attendance in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Groups-for-Attendance/m-p/533875#M16394</link>
    <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used other BI tools but am relatively new to Power BI.&amp;nbsp; Here's my challenge.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I'm working with Education data where my Attendnace fact table stores a record every day a student is absent.&lt;/LI&gt;&lt;LI&gt;I'm trying to create dynamic groups that calculate the range that a student falls in.&lt;/LI&gt;&lt;LI&gt;These ranges will have to be updated depending on what school year, grade, subject, etc is filtered on.&lt;/LI&gt;&lt;LI&gt;The ranges are 0 days, 1-5 days, 6-10 days, 11-20 Days, 20+ Days&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I created a lookup table that can be used in the calculation.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Elementary Attendance Days Absent Range&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Elementary Attendance Days Absent Range.png" style="width: 454px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/123997i94DEE00DA3F7BE7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Elementary Attendance Days Absent Range.png" alt="Elementary Attendance Days Absent Range.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the DAX expression I'm trying to use.&amp;nbsp; Note that [Elementary Attendance Students] is a distinct count of student numbers.&lt;/P&gt;&lt;PRE&gt;Days Absent Range = 
VAR AgeRangeDimension = VALUES('D: Student'[OEN])

RETURN
CALCULATE ([Elementary Attendance Students], 
    FILTER ( AgeRangeDimension, 
        COUNTROWS(
            FILTER('Elementary Attendance Days Absent Range', 
                RANKX( ALL   ('D: Student'[OEN] ), 'M: Elementary Attendance'[Days Absent], , DESC ) &amp;gt; 'Elementary Attendance Days Absent Range'[Min Days] 
                &amp;amp;&amp;amp; RANKX(ALL ('D: Student'[OEN] ), 'M: Elementary Attendance'[Days Absent], , DESC ) &amp;lt;= 'Elementary Attendance Days Absent Range'[Max Days] ) ) &amp;gt; 0
            )
        )&lt;/PRE&gt;&lt;P&gt;When I use this column in a dashboard, I just get the value of&amp;nbsp;large number which I beliegve is just summing all of the stduents.&amp;nbsp; Here are the questions that I'm hoping you can help with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;What do I need to do to in the expression above to return the Range column from the lookup table?&amp;nbsp; Ideally I'd like to see 1 - 5 Days, 6 - 10 Days, etc returned.&lt;/LI&gt;&lt;LI&gt;Should this calculation be a column or measure?&lt;/LI&gt;&lt;LI&gt;Does it matter if the calculation above exits in the fact table or should I create it in a standalone table?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Oct 2018 16:23:07 GMT</pubDate>
    <dc:creator>DAZYCO</dc:creator>
    <dc:date>2018-10-04T16:23:07Z</dc:date>
    <item>
      <title>Dynamic Groups for Attendance</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Groups-for-Attendance/m-p/533875#M16394</link>
      <description>&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've used other BI tools but am relatively new to Power BI.&amp;nbsp; Here's my challenge.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I'm working with Education data where my Attendnace fact table stores a record every day a student is absent.&lt;/LI&gt;&lt;LI&gt;I'm trying to create dynamic groups that calculate the range that a student falls in.&lt;/LI&gt;&lt;LI&gt;These ranges will have to be updated depending on what school year, grade, subject, etc is filtered on.&lt;/LI&gt;&lt;LI&gt;The ranges are 0 days, 1-5 days, 6-10 days, 11-20 Days, 20+ Days&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I created a lookup table that can be used in the calculation.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Elementary Attendance Days Absent Range&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Elementary Attendance Days Absent Range.png" style="width: 454px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/123997i94DEE00DA3F7BE7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Elementary Attendance Days Absent Range.png" alt="Elementary Attendance Days Absent Range.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the DAX expression I'm trying to use.&amp;nbsp; Note that [Elementary Attendance Students] is a distinct count of student numbers.&lt;/P&gt;&lt;PRE&gt;Days Absent Range = 
VAR AgeRangeDimension = VALUES('D: Student'[OEN])

RETURN
CALCULATE ([Elementary Attendance Students], 
    FILTER ( AgeRangeDimension, 
        COUNTROWS(
            FILTER('Elementary Attendance Days Absent Range', 
                RANKX( ALL   ('D: Student'[OEN] ), 'M: Elementary Attendance'[Days Absent], , DESC ) &amp;gt; 'Elementary Attendance Days Absent Range'[Min Days] 
                &amp;amp;&amp;amp; RANKX(ALL ('D: Student'[OEN] ), 'M: Elementary Attendance'[Days Absent], , DESC ) &amp;lt;= 'Elementary Attendance Days Absent Range'[Max Days] ) ) &amp;gt; 0
            )
        )&lt;/PRE&gt;&lt;P&gt;When I use this column in a dashboard, I just get the value of&amp;nbsp;large number which I beliegve is just summing all of the stduents.&amp;nbsp; Here are the questions that I'm hoping you can help with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;What do I need to do to in the expression above to return the Range column from the lookup table?&amp;nbsp; Ideally I'd like to see 1 - 5 Days, 6 - 10 Days, etc returned.&lt;/LI&gt;&lt;LI&gt;Should this calculation be a column or measure?&lt;/LI&gt;&lt;LI&gt;Does it matter if the calculation above exits in the fact table or should I create it in a standalone table?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 16:23:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Groups-for-Attendance/m-p/533875#M16394</guid>
      <dc:creator>DAZYCO</dc:creator>
      <dc:date>2018-10-04T16:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Groups for Attendance</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Groups-for-Attendance/m-p/536060#M16517</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/84910"&gt;@DAZYCO&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You may&amp;nbsp;refer to the following post.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Create-a-bar-graph-with-measures-as-axis/td-p/455900" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Create-a-bar-graph-with-measures-as-axis/td-p/455900&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 09:08:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Dynamic-Groups-for-Attendance/m-p/536060#M16517</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2018-10-08T09:08:02Z</dc:date>
    </item>
  </channel>
</rss>

