<?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 Measure that calculates differently based on another value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-that-calculates-differently-based-on-another-value/m-p/3582572#M138218</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="114993" data-lia-user-login="rachaelwalker" class="lia-mention lia-mention-user"&gt;rachaelwalker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try pulling the following measure onto your table visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Select Measure =&lt;BR /&gt;VAR CurrentDepartment = MAX(Table[Department])&lt;BR /&gt;VAR Result =&lt;BR /&gt;IF(&lt;BR /&gt;CurrentDepartment = "Service",&lt;BR /&gt;[Utlizized % Adjusted],&lt;BR /&gt;[Utilized %]&lt;BR /&gt;)&lt;BR /&gt;RETURN Result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2023 18:56:59 GMT</pubDate>
    <dc:creator>WinterMist</dc:creator>
    <dc:date>2023-12-13T18:56:59Z</dc:date>
    <item>
      <title>DAX Measure that calculates differently based on another value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-that-calculates-differently-based-on-another-value/m-p/3582563#M138217</link>
      <description>&lt;P&gt;I created two measures that calculate the Utilization hours %. One department calculates it differently so I created a separate measure for their department. I have both values shown in a table but I only want one column for [Utilized %] depending on the employees department. I feel I could accomplish this with one measure but I am having a hard time filtering department in a measure&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If department = "Service" then use [Utilized % Adjusted] else [Utilized %]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Measures&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Utilized % =&lt;/SPAN&gt; &lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Time Entry'&lt;/SPAN&gt;&lt;SPAN&gt;[Hours Utilized]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Time Entry'&lt;/SPAN&gt;&lt;SPAN&gt;[Hours Actual]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Utilized % Adjusted =&lt;/SPAN&gt; &lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Time Entry'&lt;/SPAN&gt;&lt;SPAN&gt;[Utilized Hours Service Desk]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Time Entry'&lt;/SPAN&gt;&lt;SPAN&gt;[Hours Actual]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is the results I am looking for&lt;/SPAN&gt;&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;</description>
      <pubDate>Wed, 13 Dec 2023 18:49:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-that-calculates-differently-based-on-another-value/m-p/3582563#M138217</guid>
      <dc:creator>rachaelwalker</dc:creator>
      <dc:date>2023-12-13T18:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure that calculates differently based on another value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-that-calculates-differently-based-on-another-value/m-p/3582572#M138218</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="114993" data-lia-user-login="rachaelwalker" class="lia-mention lia-mention-user"&gt;rachaelwalker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try pulling the following measure onto your table visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Select Measure =&lt;BR /&gt;VAR CurrentDepartment = MAX(Table[Department])&lt;BR /&gt;VAR Result =&lt;BR /&gt;IF(&lt;BR /&gt;CurrentDepartment = "Service",&lt;BR /&gt;[Utlizized % Adjusted],&lt;BR /&gt;[Utilized %]&lt;BR /&gt;)&lt;BR /&gt;RETURN Result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 18:56:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-that-calculates-differently-based-on-another-value/m-p/3582572#M138218</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2023-12-13T18:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure that calculates differently based on another value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-that-calculates-differently-based-on-another-value/m-p/3582740#M138227</link>
      <description>&lt;P&gt;Append that 2 tables, and make sure that&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;[Hours Utilized]&lt;/STRONG&gt; (of other department) and &lt;STRONG&gt;[Utilized Hours Service Desk] &lt;/STRONG&gt;fall into the same column in the appended table.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 21:45:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-that-calculates-differently-based-on-another-value/m-p/3582740#M138227</guid>
      <dc:creator>Tom_Y</dc:creator>
      <dc:date>2023-12-13T21:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure that calculates differently based on another value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-that-calculates-differently-based-on-another-value/m-p/3604469#M139263</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="114993" data-lia-user-login="rachaelwalker" class="lia-mention lia-mention-user"&gt;rachaelwalker&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'd like to suggest you take a look at the following blog to know how to pick up the current row context value:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/articles/using-the-selectedvalue-function-in-dax/" target="_blank"&gt;Using the SELECTEDVALUE function in DAX - SQLBI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The you can use compare with the current value and specific value and use in if statement to work as conditions.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Xiaoxin Sheng&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 02:58:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-that-calculates-differently-based-on-another-value/m-p/3604469#M139263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-12-28T02:58:26Z</dc:date>
    </item>
  </channel>
</rss>

