<?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 overcomplicated? (CALC/SUM) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-overcomplicated-CALC-SUM/m-p/1191630#M18838</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="207142" data-lia-user-login="baneworth" class="lia-mention lia-mention-user"&gt;baneworth&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your 1st query try using CONTAINSSTRING function if it fits your requirement:&lt;/P&gt;&lt;P&gt;&lt;A href="https://dax.guide/containsstring/" target="_blank"&gt;https://dax.guide/containsstring/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your 2nd query you can just put a not equals filter for the single value that you don't want. like:&lt;/P&gt;&lt;P&gt;FILTER(Productlabel[ProductNEW] &amp;lt;&amp;gt; "your value")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pragati&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jun 2020 09:07:26 GMT</pubDate>
    <dc:creator>Pragati11</dc:creator>
    <dc:date>2020-06-30T09:07:26Z</dc:date>
    <item>
      <title>DAX overcomplicated? (CALC/SUM)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-overcomplicated-CALC-SUM/m-p/1190914#M18825</link>
      <description>&lt;P&gt;I managed to solve the issue but the DAX does look quite stretched IMO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 1 questions regarding 2nd Filter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I basically wrote down all the "ProductNEW" values to be shown one after another. I was thinking if there is a better way to shorten the DAX a little since they all start with the same letters (Altus****). Like only writing 1 statement for "Altus*" which replies everything starting with Altus.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Lets imagine i would need all values in ProductNEW except one, i tried adding a minus before to exclude the unwanted value but it did not work. Is there something i can do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 05:20:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-overcomplicated-CALC-SUM/m-p/1190914#M18825</guid>
      <dc:creator>baneworth</dc:creator>
      <dc:date>2020-06-30T05:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAX overcomplicated? (CALC/SUM)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-overcomplicated-CALC-SUM/m-p/1191630#M18838</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="207142" data-lia-user-login="baneworth" class="lia-mention lia-mention-user"&gt;baneworth&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your 1st query try using CONTAINSSTRING function if it fits your requirement:&lt;/P&gt;&lt;P&gt;&lt;A href="https://dax.guide/containsstring/" target="_blank"&gt;https://dax.guide/containsstring/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your 2nd query you can just put a not equals filter for the single value that you don't want. like:&lt;/P&gt;&lt;P&gt;FILTER(Productlabel[ProductNEW] &amp;lt;&amp;gt; "your value")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pragati&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 09:07:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-overcomplicated-CALC-SUM/m-p/1191630#M18838</guid>
      <dc:creator>Pragati11</dc:creator>
      <dc:date>2020-06-30T09:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: DAX overcomplicated? (CALC/SUM)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-overcomplicated-CALC-SUM/m-p/1192109#M18867</link>
      <description>&lt;LI-CODE lang="csharp"&gt;[Total Work] = SUM( EmployeeHours[TimeOnTask] )

[Non-Productive Work] =
	CALCULATE(
		[Total Work],
		KEEPFILTERS(
			TaskCategory[CategoryName] in {
				"Non-Productive Work",
				"Administrative"
			}
		),
		KEEPFILTERS(
			LEFT(
				ProductLabel[ProductNEW],
				LEN( "Altus" )) = "Altus"
		)
	)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 11:57:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-overcomplicated-CALC-SUM/m-p/1192109#M18867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-30T11:57:10Z</dc:date>
    </item>
  </channel>
</rss>

