<?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: IF that will ignore Grand Sum in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-that-will-ignore-Grand-Sum/m-p/2167743#M50280</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="241995" data-lia-user-login="kalspiros" class="lia-mention lia-mention-user"&gt;kalspiros&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replace the column you used in Row Labes (Column A) with&amp;nbsp;[&lt;FONT color="#FF0000"&gt;a column that you used in row&lt;/FONT&gt;].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF that column is Name then use [Name]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Nov 2021 07:00:26 GMT</pubDate>
    <dc:creator>VahidDM</dc:creator>
    <dc:date>2021-11-02T07:00:26Z</dc:date>
    <item>
      <title>IF that will ignore Grand Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-that-will-ignore-Grand-Sum/m-p/2166038#M50188</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bit of a quick one, I am having a list of values, sick leave days taken through the year.&lt;/P&gt;&lt;P&gt;I have a measure that will sum them up per employee: Sick Leave Days:=SUM([values]) and sliced by employee.&lt;/P&gt;&lt;P&gt;I want to create the following IF: Sick Leave Adjusted:=IF([Sick Leave Days]&amp;gt;5,5,[Sick Leave Days]), in essence, eliminate any sick leave days over 5.&lt;/P&gt;&lt;P&gt;That works well but problem is, once in Grand Total of the pivot, [Sick Leave Adjusted] will return value 5 and not the adjusted sum.&lt;/P&gt;&lt;P&gt;I did try an iteration of it, (SUMX([Leave],IF([Sick Leave Days]&amp;gt;5,5,[Sick Leave Days]))) but that won't work since that only checks individual records rather than the SUM.&lt;/P&gt;&lt;P&gt;Another option I'm thinking is to use the SUMX above but then i'll have to head back to power query and group my values and sum them up by employee.&lt;/P&gt;&lt;P&gt;Any idea on DAX?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 10:34:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-that-will-ignore-Grand-Sum/m-p/2166038#M50188</guid>
      <dc:creator>kalspiros</dc:creator>
      <dc:date>2021-11-01T10:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: IF that will ignore Grand Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-that-will-ignore-Grand-Sum/m-p/2166102#M50191</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="241995" data-lia-user-login="kalspiros" class="lia-mention lia-mention-user"&gt;kalspiros&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Sick Leave Adjusted =
IF(
    HASONEVALUE( [a column that you used in row] ),
    IF( [Sick Leave Days] &amp;gt; 5, 5, [Sick Leave Days] ),
    SUMX(
        SUMMARIZE(
            table,
            [a column that you used in row],
            "Leave", IF( [Sick Leave Days] &amp;gt; 5, 5, [Sick Leave Days] )
        ),
        [Leave]
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 11:17:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-that-will-ignore-Grand-Sum/m-p/2166102#M50191</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-11-01T11:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: IF that will ignore Grand Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-that-will-ignore-Grand-Sum/m-p/2166126#M50192</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="315278" data-lia-user-login="VahidDM" class="lia-mention lia-mention-user"&gt;VahidDM&lt;/a&gt;&amp;nbsp;, apologies for the complete ignorance but i'm somehow lost due to HASONEVALUE which i can't get my head around it. what do you mean by&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[a column that you used in row]&lt;/PRE&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;I think i'm doing something wrong because the values that are coming up are rather funny&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 11:46:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-that-will-ignore-Grand-Sum/m-p/2166126#M50192</guid>
      <dc:creator>kalspiros</dc:creator>
      <dc:date>2021-11-01T11:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: IF that will ignore Grand Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-that-will-ignore-Grand-Sum/m-p/2167743#M50280</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="241995" data-lia-user-login="kalspiros" class="lia-mention lia-mention-user"&gt;kalspiros&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replace the column you used in Row Labes (Column A) with&amp;nbsp;[&lt;FONT color="#FF0000"&gt;a column that you used in row&lt;/FONT&gt;].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF that column is Name then use [Name]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;accepting&lt;/STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 07:00:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-that-will-ignore-Grand-Sum/m-p/2167743#M50280</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-11-02T07:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: IF that will ignore Grand Sum</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-that-will-ignore-Grand-Sum/m-p/2167904#M50287</link>
      <description>&lt;P&gt;Fantastic! many thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="315278" data-lia-user-login="VahidDM" class="lia-mention lia-mention-user"&gt;VahidDM&lt;/a&gt;&amp;nbsp;that works wonders! Initially it was returning all 5's but the problem was with the [Sum Leave Days] measure, it all works fine now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 08:11:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IF-that-will-ignore-Grand-Sum/m-p/2167904#M50287</guid>
      <dc:creator>kalspiros</dc:creator>
      <dc:date>2021-11-02T08:11:32Z</dc:date>
    </item>
  </channel>
</rss>

