<?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: Measure calculating inaccurately in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculating-inaccurately/m-p/3761105#M146738</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="682236" data-lia-user-login="AussieD" class="lia-mention lia-mention-user"&gt;AussieD&lt;/a&gt;&amp;nbsp;Only difference I can think of is that COUNTA supports boolean values. That's the only real difference between it and COUNT&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2024 15:39:27 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2024-03-13T15:39:27Z</dc:date>
    <item>
      <title>Measure calculating inaccurately</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculating-inaccurately/m-p/3758722#M146639</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm using a very simple measure and getting a non-accurate result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;in theory COUNTAX should return 24 since there are 4 zeros among the 28 rows. however in the card on the left you can see that I'm getting 28. i really just want to count the 1's (hits) but can't seem to get any of the aggragate functions to work. pictured above is COUNTAX but i have similar issues with any of the Aggregation functions.&lt;/P&gt;&lt;P&gt;My end goal is for "2024 goal" to be a measure of success rate. Dividing the "Hits"=1 by the total number of logged days to get a percentage. Something like this:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;2024&lt;/SPAN&gt;&lt;SPAN&gt; goal =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;COUNTAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Headcount'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Daily Hit]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Headcount&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;But because of the issue described above, this always evaluates to 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Background information:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Things to know:&lt;BR /&gt;1. "Daily Hit" is a calculated column and is working correctly, it assigns either a 1 or a 0 depending on whether or not a technician did enough work for the day relative to their recorded hours.&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;Daily Hit = &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Var&lt;/SPAN&gt;&lt;SPAN&gt; workload = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;('Daily WOTT'[Hours/ Packet action]),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;('Daily WOTT', 'Daily WOTT'[Technician]=[Technician])&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt; &lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(workload&amp;gt;=([Hours]-&lt;/SPAN&gt;&lt;SPAN&gt;.5&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;amp;&amp;amp; [hours]&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;2. two of my tables are related through the date and additionally through a technician table that only contains names so that it can be a 1:* cardinality.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So my question is: what else effects Dax Measures that causes abbarent results?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;From what i can tell i have everything set up properly and I've formatted things correctly, so i'd like to know what the issue is here, but also what i can check in the future besides the relationships and Dax Libraries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any help i can get, Thanks &lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 18:06:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculating-inaccurately/m-p/3758722#M146639</guid>
      <dc:creator>AussieD</dc:creator>
      <dc:date>2024-03-12T18:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Measure calculating inaccurately</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculating-inaccurately/m-p/3758748#M146640</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="682236" data-lia-user-login="AussieD" class="lia-mention lia-mention-user"&gt;AussieD&lt;/a&gt;&amp;nbsp;Can you just use COUNTROWS( FILTER( ... [something] = 1)) ?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 18:32:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculating-inaccurately/m-p/3758748#M146640</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-03-12T18:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Measure calculating inaccurately</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculating-inaccurately/m-p/3758768#M146642</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;That seems to work, and is the only formula that has worked so far. Thanks for the suggestion&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;So then the only thing I'm struggling to undestand is the difference between these two functions:&lt;BR /&gt;COUNTROWS(FILTER('Table', [Column]=x))&amp;nbsp;&lt;EM&gt;this provides the correct result&lt;/EM&gt;&lt;BR /&gt;COUNTAX('Table', [Column]=x)&amp;nbsp;&lt;EM&gt;This provides an incorrect result&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Shouldn't these intrisically work the same way?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 19:50:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculating-inaccurately/m-p/3758768#M146642</guid>
      <dc:creator>AussieD</dc:creator>
      <dc:date>2024-03-12T19:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Measure calculating inaccurately</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculating-inaccurately/m-p/3760603#M146711</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="682236" data-lia-user-login="AussieD" class="lia-mention lia-mention-user"&gt;AussieD&lt;/a&gt;&amp;nbsp;Hmm. Any chance you can post sample data as text so that I can test this out?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 12:14:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculating-inaccurately/m-p/3760603#M146711</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-03-13T12:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Measure calculating inaccurately</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculating-inaccurately/m-p/3760842#M146717</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;sorry, all of my data sets are live, i can't share that level of data. But, I agree, this has been making me want to find another test case. This seemed like a really weird issue from the start and the solution seems no more intuitivly correct than the alternatives.&lt;BR /&gt;&lt;BR /&gt;Appreciate your help so far.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 13:53:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculating-inaccurately/m-p/3760842#M146717</guid>
      <dc:creator>AussieD</dc:creator>
      <dc:date>2024-03-13T13:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Measure calculating inaccurately</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculating-inaccurately/m-p/3761105#M146738</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="682236" data-lia-user-login="AussieD" class="lia-mention lia-mention-user"&gt;AussieD&lt;/a&gt;&amp;nbsp;Only difference I can think of is that COUNTA supports boolean values. That's the only real difference between it and COUNT&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 15:39:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculating-inaccurately/m-p/3761105#M146738</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-03-13T15:39:27Z</dc:date>
    </item>
  </channel>
</rss>

