<?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: DAX Help in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/1121793#M16554</link>
    <description>If you don't want to calculate wrong numbers from time to time... you have to change the design into a proper star-schema. Otherwise you're risking incorrect numbers without even knowing it.&lt;BR /&gt;&lt;BR /&gt;If you want to know what can happen when you have just one big table as the model, please read this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/understanding-dax-auto-exist/" target="_blank"&gt;https://www.sqlbi.com/articles/understanding-dax-auto-exist/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
    <pubDate>Wed, 27 May 2020 08:42:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-27T08:42:35Z</dc:date>
    <item>
      <title>DAX Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/1120834#M16510</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me with Power BI DAX.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have strugling to create DAX to count total number of Child who has absent 3 or more days every month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached my cleaned data on this link:&lt;/P&gt;&lt;P&gt;&lt;A title="Data Cleaned" href="https://www.dropbox.com/s/h1v577tm7y7utvh/Data%20Cleaned.pbix?dl=0" target="_self"&gt;Data Cleaned&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 19:10:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/1120834#M16510</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-26T19:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/1121038#M16520</link>
      <description>The formulation of the problem is not precise. Please give examples of calculations and what you mean by "absent 3 or more days every month" in some contexts.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Tue, 26 May 2020 21:41:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/1121038#M16520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-26T21:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/1121452#M16543</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have updated the pbix please look at attachment and this pictute:&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;In Values I have added this DAX:&lt;/P&gt;&lt;P&gt;# of Absent = CALCULATE(COUNTA (AttendanceMaster[ChildID], FILTER (AttendanceMaster,AttendanceMaster[IsPresent] = FALSE ()))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to measure total ChildID who have values 3 or more days every month. So that I have to created this DAX but does not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;# of ChildID Absent 3 or more days = CALCULATE(COUNTA (AttendanceMaster[ChildID], FILTER (AttendanceMaster,[# of Absent] &amp;gt;= 3))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please look at this link:&lt;/P&gt;&lt;P&gt;&lt;A title="Clean Data" href="https://www.dropbox.com/s/u6adqqnpyt4vn7t/Data%20Cleaned.pbix?dl=0" target="_self"&gt;Data Cleaned&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 05:57:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/1121452#M16543</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-27T05:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/1121789#M16553</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;# Child Absent 3+ Days = 
COUNTROWS(
    FILTER(
        VALUES( AttendanceMaster[ChildID] ),
        CALCULATE(
            COUNTROWS( AttendanceMaster ) &amp;gt;= 3,
            KEEPFILTERS( NOT AttendanceMaster[IsPresent] )
        )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 08:44:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/1121789#M16553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-27T08:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/1121793#M16554</link>
      <description>If you don't want to calculate wrong numbers from time to time... you have to change the design into a proper star-schema. Otherwise you're risking incorrect numbers without even knowing it.&lt;BR /&gt;&lt;BR /&gt;If you want to know what can happen when you have just one big table as the model, please read this:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/understanding-dax-auto-exist/" target="_blank"&gt;https://www.sqlbi.com/articles/understanding-dax-auto-exist/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Wed, 27 May 2020 08:42:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/1121793#M16554</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-27T08:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/1122487#M16569</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you. You have found solution for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In other case, I have Strugling to calculate total Child who has absent greater than 10% to less than or equal 20%.&lt;/P&gt;&lt;P&gt;Please look at this picture:&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;In Values, I have created this measure:&lt;/P&gt;&lt;P&gt;# of Absent Child = CALCULATE (COUNTA('AttendanceMaster'[ChildID], 'AttendanceMaster[IsPresent] IN { FALSE })&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that I created this measure too:&lt;/P&gt;&lt;P&gt;# of Child Days = CALCULATE(COUNT('AttendanceMaster'[ChildID]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Than I created this measure also:&lt;/P&gt;&lt;P&gt;% of Absent Child = CALCULATE(DIVIDE([# of Absent Child],[# of Child Days]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to measure total count of Child who has absent &amp;gt;10% to &amp;lt;=20% every month.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me again for the last?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attach pbix on this link. Please look that data:&lt;/P&gt;&lt;P&gt;&lt;A title="Updated Data Cleaned" href="https://www.dropbox.com/s/ebc36s1q7x6kk9n/Updated%20Data%20Cleaned.pbix?dl=0" target="_self"&gt;Updated Data Cleaned&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 11:37:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/1122487#M16569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-27T11:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/1130008#M16730</link>
      <description>&lt;P&gt;Hi there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've had a look at the file. I think many of those measures are incorrect (and will not work correctly in many filtering conditions) but I might be wrong and from your point of view they are correct. Not sure but my experience tells me they are not right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, regardless of the above, I think you're after such a measure:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;# Children 10%-20% = 
    COUNTROWS(
        FILTER(
            VALUES( AttendanceMaster[ChildID] ),
            .1 &amp;lt; [% of Absent Child]
            &amp;amp;&amp;amp;
            [% of Absent Child] &amp;lt;= .2
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;If this does not work, you have to create a measure (in place of [% of Absent Child]) that will calculate the percentage of time that a child was absent IN ANY SETTING. Please bear in mind that the measure should work correctly under any circumstances. If it's not, then the calculation is wrong as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2020 18:26:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help/m-p/1130008#M16730</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-29T18:26:10Z</dc:date>
    </item>
  </channel>
</rss>

