<?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: Help Required: on conditional counts and Staff Sickness Ratio (Syntax and Dax help) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Required-on-conditional-counts-and-Staff-Sickness-Ratio/m-p/2535791#M71258</link>
    <description>&lt;P&gt;Thanks you, one issue I'm having with this is when I feed this into my sickness ratio calculation and I filter the page by department (to get a departmental view), the department filter seems to be messing this up. I've got a date bridge table (similar to yours above) and a department bridge table. Do you have any possible ideas on how I could make this work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the issue is that the total absences by day column is too disconnected from the departmental relationship(s) in my relationships network&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2022 10:00:07 GMT</pubDate>
    <dc:creator>JamesLindsay101</dc:creator>
    <dc:date>2022-05-24T10:00:07Z</dc:date>
    <item>
      <title>Help Required: on conditional counts and Staff Sickness Ratio (Syntax and Dax help)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Required-on-conditional-counts-and-Staff-Sickness-Ratio/m-p/2523069#M70449</link>
      <description>&lt;P&gt;Hi, my request is similar to the one hyperlinked &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Count-Rows-Falling-between-two-dates-from-disconnected-table/m-p/2250163" target="_self"&gt;here&lt;/A&gt;, however slightly different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking to form a column of counts in my Date Dimensions table from a table of absences (this table includes a list of absence episodes with columns that include a start date and an end date, and other contextual info that isn't relevant here) how many of these absences include a date from my Date Dimension/bridger table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My thinking is that if I'm able to count how many times each date in the date column my date dimension table is in between each of the absence start date and end dates, I can work out how many days are being taken off across a specific period and therefore put together a staff sickness ratio measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying the above hyperlinked solution will only give me if the date dimensions are appearing inbetween the start date and end date, however I'd almost like the reverse of this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is generally what I'm trying to do (What I'm aiming towards in DAX):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total Absences by Day =&lt;BR /&gt;CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX(Absences,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF('Date Dimension'[Date]&amp;gt;=Absences[Absence Start Date]&amp;amp;&amp;amp;'Date Dimension'[Date]&amp;lt;=Absences[Absence End Date])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I'm mixing up measure calculations and column calculations also, Any ideas?&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 18 May 2022 10:40:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Required-on-conditional-counts-and-Staff-Sickness-Ratio/m-p/2523069#M70449</guid>
      <dc:creator>JamesLindsay101</dc:creator>
      <dc:date>2022-05-18T10:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help Required: on conditional counts and Staff Sickness Ratio (Syntax and Dax help)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Required-on-conditional-counts-and-Staff-Sickness-Ratio/m-p/2532259#M71056</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="391142" data-lia-user-login="JamesLindsay101" class="lia-mention lia-mention-user"&gt;JamesLindsay101&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try the following measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Absences by Day = 
SUMX (
    SUMMARIZE (
        'Date Dimension',
        'Date Dimension'[Date],
        "_count",
            CALCULATE (
                COUNTROWS ( Absences ),
                FILTER (
                    Absences,
                    Absences[Absence Start Date] &amp;lt;= MAX ( 'Date Dimension'[Date] )
                        &amp;amp;&amp;amp; Absences[Absence End Date] &amp;gt;= MAX ( 'Date Dimension'[Date] )
                )
            )
    ),
    [_count]
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.&lt;BR /&gt;Best Regards,&lt;BR /&gt;Winniz&lt;BR /&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>Mon, 23 May 2022 07:01:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Required-on-conditional-counts-and-Staff-Sickness-Ratio/m-p/2532259#M71056</guid>
      <dc:creator>v-kkf-msft</dc:creator>
      <dc:date>2022-05-23T07:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help Required: on conditional counts and Staff Sickness Ratio (Syntax and Dax help)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Required-on-conditional-counts-and-Staff-Sickness-Ratio/m-p/2535791#M71258</link>
      <description>&lt;P&gt;Thanks you, one issue I'm having with this is when I feed this into my sickness ratio calculation and I filter the page by department (to get a departmental view), the department filter seems to be messing this up. I've got a date bridge table (similar to yours above) and a department bridge table. Do you have any possible ideas on how I could make this work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the issue is that the total absences by day column is too disconnected from the departmental relationship(s) in my relationships network&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 10:00:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Required-on-conditional-counts-and-Staff-Sickness-Ratio/m-p/2535791#M71258</guid>
      <dc:creator>JamesLindsay101</dc:creator>
      <dc:date>2022-05-24T10:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help Required: on conditional counts and Staff Sickness Ratio (Syntax and Dax help)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Required-on-conditional-counts-and-Staff-Sickness-Ratio/m-p/2538104#M71404</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="391142" data-lia-user-login="JamesLindsay101" class="lia-mention lia-mention-user"&gt;JamesLindsay101&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my model, the Date Dimension table is a separate table and no relationship is established between it and Absences table. So could you please share your model and sample data?&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;Best Regards,&lt;BR /&gt;Winniz&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 07:40:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Required-on-conditional-counts-and-Staff-Sickness-Ratio/m-p/2538104#M71404</guid>
      <dc:creator>v-kkf-msft</dc:creator>
      <dc:date>2022-05-25T07:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help Required: on conditional counts and Staff Sickness Ratio (Syntax and Dax help)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Required-on-conditional-counts-and-Staff-Sickness-Ratio/m-p/2538607#M71439</link>
      <description>&lt;P&gt;Mine currently uses an inactive relationship, is this the same as when there is no relationship?&lt;BR /&gt;&lt;BR /&gt;Please see below the relationship screenshot (I can't share the data as it's sensitive information), note I've made the sub-division (department) dimension bridge table active as it wasn't interacting with the filters on the page when inactive.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The Sickness Ratio measure is made up of the measure in this forum and then 2 headcount measures in the employee listing table. hope this helps&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 10:27:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Required-on-conditional-counts-and-Staff-Sickness-Ratio/m-p/2538607#M71439</guid>
      <dc:creator>JamesLindsay101</dc:creator>
      <dc:date>2022-05-25T10:27:45Z</dc:date>
    </item>
  </channel>
</rss>

