<?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: value &amp;lt; 24 , not returning 0 values in DAX. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-lt-24-not-returning-0-values-in-DAX/m-p/2336415#M58870</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you expect the output to be?&amp;nbsp;The final output of the Dax you have written is a table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = 
SUMMARIZE (
    FILTER (
        SUMMARIZE (
            Staffing,
            'Staffing'[DW_EK_Employee],
            "summ", SUM ( Staffing[Hours] )
        ),
        [summ] &amp;lt; 24
    ),
    [summ]
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Can you provide some data for testing? What do you expect the final result to look like and can you show it in a screenshot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Feb 2022 09:22:03 GMT</pubDate>
    <dc:creator>v-zhangti</dc:creator>
    <dc:date>2022-02-14T09:22:03Z</dc:date>
    <item>
      <title>value &lt; 24 , not returning 0 values in DAX.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-lt-24-not-returning-0-values-in-DAX/m-p/2328660#M58411</link>
      <description>&lt;P&gt;I have a DAX code where I am doing:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var Final1 = 
FILTER(
            SUMMARIZE(NextWeekCS,'Staffing'[DW_EK_Employee],'Date'[Week Year Week Number],"summ", SUM(Staffing[Hours])
            ),                       
                         [summ]&amp;lt;24
                         )

Var final = SUMMARIZE(final1, 'Staffing'[DW_EK_Employee])&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But there is cases where the summ is 0, and my query is not retrieving those results:&lt;/P&gt;&lt;P&gt;I tend to think in a sql-way... is it correct to apply either?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;[summ]&amp;lt;24 || [summ]=0&lt;/LI&gt;&lt;LI&gt;[summ]&amp;lt;24 || [summ] = BLANK()&lt;/LI&gt;&lt;LI&gt;[summ]&amp;lt;24 || [summ] is BLANK&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Or shall I create a new/different summarize?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 15:56:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-lt-24-not-returning-0-values-in-DAX/m-p/2328660#M58411</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-09T15:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: value &lt; 24 , not returning 0 values in DAX.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-lt-24-not-returning-0-values-in-DAX/m-p/2328695#M58418</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;It is somewhat hard to judge this since I am not sure how much data you are dealing with, but I would go with the second option. Additionally depending on your end goal, I would use functions like SUMX in the second variable/ end result. e.g. if you want to have hours in a filter context SUMX(final1,[summ]) should be useful. Finally, these sort of iterative SUMMARIZE structures are rarely optimal and depending on your end goal it might be good to rethink your apporach.&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 16:07:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-lt-24-not-returning-0-values-in-DAX/m-p/2328695#M58418</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-02-09T16:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: value &lt; 24 , not returning 0 values in DAX.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-lt-24-not-returning-0-values-in-DAX/m-p/2336415#M58870</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you expect the output to be?&amp;nbsp;The final output of the Dax you have written is a table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = 
SUMMARIZE (
    FILTER (
        SUMMARIZE (
            Staffing,
            'Staffing'[DW_EK_Employee],
            "summ", SUM ( Staffing[Hours] )
        ),
        [summ] &amp;lt; 24
    ),
    [summ]
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Can you provide some data for testing? What do you expect the final result to look like and can you show it in a screenshot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 09:22:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-lt-24-not-returning-0-values-in-DAX/m-p/2336415#M58870</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2022-02-14T09:22:03Z</dc:date>
    </item>
  </channel>
</rss>

