<?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: Filtering Issues for Individual Measures in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Issues-for-Individual-Measures/m-p/3534167#M135797</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="604639" data-lia-user-login="powerbinovice01" class="lia-mention lia-mention-user"&gt;powerbinovice01&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on the error message you received, it seems that the function is unable to work with the values of the string type SUMX. The function that you added to your modified measure converts the string values to numeric values, which is why you are now seeing values instead of blanks VALUE.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TOTAL_b =
CALCULATE (
    COUNT ( 'Table'[Quantite B] ),
    FILTER (
        'Table',
        'Table'[YEAR_MONTH] = EARLIER ( 'Table'[YEAR_MONTH] )
            &amp;amp;&amp;amp; 'Table'[Article] = EARLIER ( 'Table'[Article] )
            &amp;amp;&amp;amp; 'Table'[Quantite B] &amp;lt;&amp;gt; 0
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;This should allow you to filter the values correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;Community Support Team _ Rongtie&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Nov 2023 02:06:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-11-15T02:06:59Z</dc:date>
    <item>
      <title>Filtering Issues for Individual Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Issues-for-Individual-Measures/m-p/3531368#M135684</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;BR /&gt;All errors started to occur after I updated my initial spreadsheets with an updated row, I was able to filter fiscal and calendar year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My inital measure was:&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;Total Payroll Expense = SUMX( FILTER( 'Test Sheet', 'Test Sheet'[P&amp;amp;L Category] = "Payroll Expense" ), 'Test Sheet'[Actual Value] )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But an error message I recieved was,&lt;BR /&gt;"&lt;SPAN&gt;Calculation error in measures, the function&lt;STRONG&gt; sumx cannot work&lt;/STRONG&gt; with the values of this type of string"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My modified measure is :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Total Payroll Expense =SUMX(&amp;nbsp;FILTER('Test Sheet',&amp;nbsp;'Test Sheet'[P&amp;amp;L Category] = "Payroll Expense"),&amp;nbsp;VALUE('Test Sheet'[Actual Value]))&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This now produces values vs blanks I was recieving. Only issue is when I filter the values they do not populate, the all turn (Blank).&lt;BR /&gt;&lt;BR /&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;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&amp;nbsp;&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>Mon, 13 Nov 2023 18:26:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Issues-for-Individual-Measures/m-p/3531368#M135684</guid>
      <dc:creator>powerbinovice01</dc:creator>
      <dc:date>2023-11-13T18:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Issues for Individual Measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Issues-for-Individual-Measures/m-p/3534167#M135797</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="604639" data-lia-user-login="powerbinovice01" class="lia-mention lia-mention-user"&gt;powerbinovice01&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on the error message you received, it seems that the function is unable to work with the values of the string type SUMX. The function that you added to your modified measure converts the string values to numeric values, which is why you are now seeing values instead of blanks VALUE.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TOTAL_b =
CALCULATE (
    COUNT ( 'Table'[Quantite B] ),
    FILTER (
        'Table',
        'Table'[YEAR_MONTH] = EARLIER ( 'Table'[YEAR_MONTH] )
            &amp;amp;&amp;amp; 'Table'[Article] = EARLIER ( 'Table'[Article] )
            &amp;amp;&amp;amp; 'Table'[Quantite B] &amp;lt;&amp;gt; 0
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;This should allow you to filter the values correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;Community Support Team _ Rongtie&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 02:06:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Issues-for-Individual-Measures/m-p/3534167#M135797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-15T02:06:59Z</dc:date>
    </item>
  </channel>
</rss>

