<?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 If statement with subtraction in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-subtraction/m-p/4373427#M173625</link>
    <description>&lt;P&gt;Please can someone help with a problem I have&lt;/P&gt;&lt;P&gt;I have a table that has the following, Column 1 is 'Weekly hours', Column 2 is 'LA' - this is part of a calculated table called 'Hours Used'&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I would like to produce a table/column - not sure which to say that if the lA is Plymouth then the weekly hours are to be subtracted from 12 and if not then the weekly hours need to be subtracted from 11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2025 10:25:49 GMT</pubDate>
    <dc:creator>SK1968</dc:creator>
    <dc:date>2025-01-21T10:25:49Z</dc:date>
    <item>
      <title>If statement with subtraction</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-subtraction/m-p/4373427#M173625</link>
      <description>&lt;P&gt;Please can someone help with a problem I have&lt;/P&gt;&lt;P&gt;I have a table that has the following, Column 1 is 'Weekly hours', Column 2 is 'LA' - this is part of a calculated table called 'Hours Used'&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I would like to produce a table/column - not sure which to say that if the lA is Plymouth then the weekly hours are to be subtracted from 12 and if not then the weekly hours need to be subtracted from 11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 10:25:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-subtraction/m-p/4373427#M173625</guid>
      <dc:creator>SK1968</dc:creator>
      <dc:date>2025-01-21T10:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with subtraction</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-subtraction/m-p/4373435#M173627</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="916231" data-lia-user-login="SK1968" class="lia-mention lia-mention-user"&gt;SK1968&lt;/a&gt;&amp;nbsp;You can create a new calculated column using DAX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;Adjusted Hours = &lt;BR /&gt;IF(&lt;BR /&gt;'Hours Used'[LA] = "Plymouth", &lt;BR /&gt;12 - 'Hours Used'[Weekly hours], &lt;BR /&gt;11 - 'Hours Used'[Weekly hours]&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 10:28:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-subtraction/m-p/4373435#M173627</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-01-21T10:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: If statement with subtraction</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-subtraction/m-p/4373592#M173642</link>
      <description>&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;P&gt;Maybe you could help me with another query. With the results of that calculated column it is not giving the correct total in a table visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know why that would be?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 12:08:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-statement-with-subtraction/m-p/4373592#M173642</guid>
      <dc:creator>SK1968</dc:creator>
      <dc:date>2025-01-21T12:08:11Z</dc:date>
    </item>
  </channel>
</rss>

