<?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: Calculate a value based on Department using a measure instead of calculated column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-value-based-on-Department-using-a-measure-instead-of/m-p/3903517#M152097</link>
    <description>&lt;P&gt;EDIT: Sorry, the Total Open Requisition for Project/Program Management is 7, not 6.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2024 22:03:19 GMT</pubDate>
    <dc:creator>egrospe17</dc:creator>
    <dc:date>2024-05-08T22:03:19Z</dc:date>
    <item>
      <title>Calculate a value based on Department using a measure instead of calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-value-based-on-Department-using-a-measure-instead-of/m-p/3903513#M152096</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've been trying to search this and figure it out but I can't seem to find the correct answer. I have two tables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(1) A list of Department&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(2) A table of all of our budgeted hire and open requisitions by department&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a count of Total Budget to Hire by department, as well as Total Open Requisition.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Total Budget to Hire is determined by the sum of "Budgeted Positions" and IF Req Type = "Budget".&lt;/LI&gt;&lt;LI&gt;Total Open Requisition is determined by the sum of "Number of Open Positions" and IF Req Type = "Open Requisition"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;How do I accomplish this using a measure instead of a calculated column? The output I need is below&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;Thank you in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 21:59:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-value-based-on-Department-using-a-measure-instead-of/m-p/3903513#M152096</guid>
      <dc:creator>egrospe17</dc:creator>
      <dc:date>2024-05-08T21:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate a value based on Department using a measure instead of calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-value-based-on-Department-using-a-measure-instead-of/m-p/3903517#M152097</link>
      <description>&lt;P&gt;EDIT: Sorry, the Total Open Requisition for Project/Program Management is 7, not 6.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 22:03:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-value-based-on-Department-using-a-measure-instead-of/m-p/3903517#M152097</guid>
      <dc:creator>egrospe17</dc:creator>
      <dc:date>2024-05-08T22:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate a value based on Department using a measure instead of calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-value-based-on-Department-using-a-measure-instead-of/m-p/3903794#M152107</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="308176" data-lia-user-login="egrospe17" class="lia-mention lia-mention-user"&gt;egrospe17&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You can try to use following measure formulas if they suitable for your requirement:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Budget =
VAR list =
    VALUES ( Department[Department] )
RETURN
    CALCULATE (
        SUM ( Table1[Budgeted Positions] ),
        FILTER ( ALLSELECTED ( Table1 ), [Department] IN list &amp;amp;&amp;amp; [Req Type] = "Budget" )
    )

Total Open Requisition =
VAR list =
    VALUES ( Department[Department] )
RETURN
    CALCULATE (
        SUM ( Table1[Number of Open Positions] ),
        FILTER (
            ALLSELECTED ( Table1 ),
            [Department]
                IN list
                    &amp;amp;&amp;amp; [Req Type] = "Open Requisition"
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2024 02:09:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-value-based-on-Department-using-a-measure-instead-of/m-p/3903794#M152107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-09T02:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate a value based on Department using a measure instead of calculated column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-value-based-on-Department-using-a-measure-instead-of/m-p/3914712#M152405</link>
      <description>This worked and exactly what I needed! Thanks so much!!</description>
      <pubDate>Mon, 13 May 2024 17:28:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-a-value-based-on-Department-using-a-measure-instead-of/m-p/3914712#M152405</guid>
      <dc:creator>egrospe17</dc:creator>
      <dc:date>2024-05-13T17:28:23Z</dc:date>
    </item>
  </channel>
</rss>

