<?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: CALCULATE filtering table by conditional measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2328169#M58373</link>
    <description>&lt;P&gt;Thanks for the help. It brings up the same semantic error i was getting in my initial measure unfortunately.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Feb 2022 12:02:33 GMT</pubDate>
    <dc:creator>edcdcpowerbi</dc:creator>
    <dc:date>2022-02-09T12:02:33Z</dc:date>
    <item>
      <title>CALCULATE filtering table by conditional measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2328087#M58367</link>
      <description>&lt;P&gt;I have two measures which calculate initial and final scores.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I now wish to have a measure which has all the clients who finished with a higher final score.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A bit lost on how to go about it, this is what i currently have which does not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would appreciate any help and advice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE( COUNT( 'Client'[ID]) , [Final Score] &amp;gt; [Initial Score] )&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 11:26:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2328087#M58367</guid>
      <dc:creator>edcdcpowerbi</dc:creator>
      <dc:date>2022-02-09T11:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE filtering table by conditional measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2328155#M58371</link>
      <description>&lt;P&gt;If you can share the details of Initial and Final Score will be better but you can try using the variable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;MEASURE=

VAR x1=[Final Score]
VAR x2=[Initial Score]
RETURN
CALCULATE( COUNT( 'Client'[ID]) , x1&amp;gt;x2 )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 11:57:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2328155#M58371</guid>
      <dc:creator>vikrambasriyar</dc:creator>
      <dc:date>2022-02-09T11:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE filtering table by conditional measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2328169#M58373</link>
      <description>&lt;P&gt;Thanks for the help. It brings up the same semantic error i was getting in my initial measure unfortunately.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 12:02:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2328169#M58373</guid>
      <dc:creator>edcdcpowerbi</dc:creator>
      <dc:date>2022-02-09T12:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE filtering table by conditional measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2328171#M58374</link>
      <description>&lt;P&gt;The initial measures are creates with this measure:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(SUM('Client')'[Total Score]),'Client[Stage] = "Final")&lt;/P&gt;&lt;P&gt;CALCULATE(SUM('Client')'[Total Score]),'Client[Stage] = "Initial")&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 12:03:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2328171#M58374</guid>
      <dc:creator>edcdcpowerbi</dc:creator>
      <dc:date>2022-02-09T12:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE filtering table by conditional measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2328172#M58375</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="324851" data-lia-user-login="edcdcpowerbi" class="lia-mention lia-mention-user"&gt;edcdcpowerbi&lt;/a&gt;&amp;nbsp;if you can share the snapshot of your data and required output.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 12:04:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2328172#M58375</guid>
      <dc:creator>vikrambasriyar</dc:creator>
      <dc:date>2022-02-09T12:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE filtering table by conditional measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2328189#M58379</link>
      <description>&lt;P&gt;Can you check the syntax of your measure. I think its not correct.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 12:19:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2328189#M58379</guid>
      <dc:creator>vikrambasriyar</dc:creator>
      <dc:date>2022-02-09T12:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE filtering table by conditional measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2328288#M58394</link>
      <description>&lt;P&gt;Syntax is correct for the initial and final measures, they are bringing through the correct numbers&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 13:10:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2328288#M58394</guid>
      <dc:creator>edcdcpowerbi</dc:creator>
      <dc:date>2022-02-09T13:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE filtering table by conditional measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2328294#M58395</link>
      <description>&lt;P&gt;The output i am looking for is all the client IDs who have a higher final score.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created two measures which give me total scores for intial and final, now i wish to calculate the client IDs that have a higher final score&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 13:12:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2328294#M58395</guid>
      <dc:creator>edcdcpowerbi</dc:creator>
      <dc:date>2022-02-09T13:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: CALCULATE filtering table by conditional measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2336191#M58854</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="324851" data-lia-user-login="edcdcpowerbi" class="lia-mention lia-mention-user"&gt;edcdcpowerbi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try the following formula:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
CALCULATE (
    DISTINCTCOUNT ( 'Client'[ID] ),
    FILTER ( ALLSELECTED ( Client[ID] ), [Final Score] &amp;gt; [Initial Score] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.&lt;BR /&gt;Best Regards,&lt;BR /&gt;Winniz&lt;BR /&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;</description>
      <pubDate>Mon, 14 Feb 2022 07:56:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALCULATE-filtering-table-by-conditional-measure/m-p/2336191#M58854</guid>
      <dc:creator>v-kkf-msft</dc:creator>
      <dc:date>2022-02-14T07:56:25Z</dc:date>
    </item>
  </channel>
</rss>

