<?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: Returning a 0 for Negative Number- but giving positive numbers and totaling without the negative in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1835132#M39061</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Adj. Vacancy Rate =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE(sumx(your table,[Adj Vacancy]), [Budget FTE Hours divided by Full FTE])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 May 2021 06:50:49 GMT</pubDate>
    <dc:creator>rfigtree</dc:creator>
    <dc:date>2021-05-11T06:50:49Z</dc:date>
    <item>
      <title>Returning a 0 for Negative Number- but giving positive numbers and totaling without the negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1830944#M38923</link>
      <description>&lt;P&gt;I am working on a vacancy rate for my organization and we are going to be using an adjusted vacancy (if over budgeted they want to show 0 instead for the negative number). I have the 0 showing and the numbers showing- but it is still adding in the totals.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My formulas are:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Adj Vacancy = IF(Recruitment_Emp_List[Vacancy]&amp;lt;0,0, [Vacancy])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Adj. Vacancy Rate =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE([Adj Vacancy], [Budget FTE Hours divided by Full FTE])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Snip of a table I am using to look at the data. The adjusted Vacancy should read about 1,518.18 and the adjusted rate would change to between 12% (I believe). 11% was the overall including the negative.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 May 2021 15:11:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1830944#M38923</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-10T15:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a 0 for Negative Number- but giving positive numbers and totaling without the negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1830998#M38926</link>
      <description>&lt;P&gt;It will be because of context. When the total is calculated your if statement won't contain the same context as it does at row level. You will need to use an iterative approach to calculate your measure.&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 22:58:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1830998#M38926</guid>
      <dc:creator>rfigtree</dc:creator>
      <dc:date>2021-05-07T22:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a 0 for Negative Number- but giving positive numbers and totaling without the negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1831003#M38927</link>
      <description>&lt;P&gt;Can you provide an example, I am a visual person. Sorry.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 23:03:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1831003#M38927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-07T23:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a 0 for Negative Number- but giving positive numbers and totaling without the negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1831032#M38929</link>
      <description>&lt;P&gt;Sorry I'm on my phone waiting for wife to get up so can't give u much. When the total is calculated. Your if statement becomes if(1752.38&amp;lt;&amp;gt;0,1752.38,0).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The measure needs to use something like sumx. To calculate adjusted vacancy so the if is against each line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 23:30:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1831032#M38929</guid>
      <dc:creator>rfigtree</dc:creator>
      <dc:date>2021-05-07T23:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a 0 for Negative Number- but giving positive numbers and totaling without the negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1831033#M38930</link>
      <description>&lt;P&gt;Now I'm in trouble. She got up and glared at me because i am on my phone.&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 23:33:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1831033#M38930</guid>
      <dc:creator>rfigtree</dc:creator>
      <dc:date>2021-05-07T23:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a 0 for Negative Number- but giving positive numbers and totaling without the negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1831475#M38954</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share the pbix?&lt;/P&gt;
&lt;TABLE style="height: 100px; width: 100%; border-collapse: collapse; border-style: groove; border-color: #0c1c49; background-color: #00675f;" border="0" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15px;"&gt;
&lt;TD width="15.961305925030231%" style="width: 92px; height: 15px;"&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="84.03869407496977%" style="width: 485px; height: 15px; text-align: left;"&gt;&lt;FONT color="#FFFFFF"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Please accept the solution when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="#FFFFFF"&gt;&lt;SPAN style="color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt; &lt;/FONT&gt;&lt;BR /&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4.5" color="#FF99CC"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 17:13:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1831475#M38954</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2021-05-08T17:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a 0 for Negative Number- but giving positive numbers and totaling without the negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1833963#M39020</link>
      <description>&lt;P&gt;I can't share the pbix. I'm sorry. I am still trying to figure this one out. I am trying to use the sumx suggested below but keep getting an error message because the vacancy is a formula and not a column in the sheet I believe. I can't peel it back further the vacancy is a formula to calculate the difference between the budgeted FTE and actual FTE&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 15:02:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1833963#M39020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-10T15:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a 0 for Negative Number- but giving positive numbers and totaling without the negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1833989#M39021</link>
      <description>&lt;P&gt;I keep getting the red line errors. I am using a formula and not a column in my sheets, could that be why? I am sorry I got you in trouble! - Sorry Mrs. rfigtree!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 15:09:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1833989#M39021</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-10T15:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a 0 for Negative Number- but giving positive numbers and totaling without the negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1834180#M39027</link>
      <description>&lt;P&gt;How about&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Adj Vacancy =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;VAR _PositiveVacancy =&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SUM(&lt;SPAN&gt;Recruitment_Emp_List[Vacancy]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Recruitment_Emp_List[Vacancy] &amp;gt; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VAR _Result = COALESCE([Adj Vacancy], 0])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_Result&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Adj. Vacancy Rate Measure would stay as you have it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 16:57:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1834180#M39027</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2021-05-10T16:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a 0 for Negative Number- but giving positive numbers and totaling without the negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1834265#M39030</link>
      <description>&lt;P&gt;Good Morning Paul-&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am still getting the error on the Vacancy part.&amp;nbsp;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 17:48:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1834265#M39030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-10T17:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a 0 for Negative Number- but giving positive numbers and totaling without the negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1834307#M39033</link>
      <description>&lt;P&gt;The row is COALESCE hasa mistake.&amp;nbsp; Let's try this one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Adj Vacancy =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;VAR _PositiveVacancy =&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SUM(&lt;SPAN&gt;Recruitment_Emp_List[Vacancy]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Recruitment_Emp_List[Vacancy] &amp;gt; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;VAR _Result = COALESCE(_PositiveVacancy , 0])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;_Result&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 18:14:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1834307#M39033</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2021-05-10T18:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a 0 for Negative Number- but giving positive numbers and totaling without the negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1834461#M39039</link>
      <description>&lt;P&gt;I still get an error, could it be because the vacancy is not a column of it's own but a formula I have included?&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 20:21:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1834461#M39039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-10T20:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a 0 for Negative Number- but giving positive numbers and totaling without the negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1835132#M39061</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Adj. Vacancy Rate =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE(sumx(your table,[Adj Vacancy]), [Budget FTE Hours divided by Full FTE])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 06:50:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1835132#M39061</guid>
      <dc:creator>rfigtree</dc:creator>
      <dc:date>2021-05-11T06:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a 0 for Negative Number- but giving positive numbers and totaling without the negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1835506#M39068</link>
      <description>&lt;P&gt;Ah, ok.&amp;nbsp; Yes, that would be a problem.&amp;nbsp; It'll help to see a screenshot of the model and the definition of [Vacancy].&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 08:22:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1835506#M39068</guid>
      <dc:creator>PaulOlding</dc:creator>
      <dc:date>2021-05-11T08:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Returning a 0 for Negative Number- but giving positive numbers and totaling without the negative</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1849476#M39505</link>
      <description>&lt;P&gt;Hi Paul! Sorry for my delay an urgent project came to my desk and I had to put this aside. The definiton of vacancy for the model is the Budgeted FTE Hours/Full FTE (to get it into an FTE number) - Actual FTE. I am trying to recreate the two documents into one but it is proving a bit more difficult/time consuming than I thought.&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 19:29:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Returning-a-0-for-Negative-Number-but-giving-positive-numbers/m-p/1849476#M39505</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-18T19:29:50Z</dc:date>
    </item>
  </channel>
</rss>

