<?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: Count values above threshold in a matrix table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3241970#M119314</link>
    <description>&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;, this is brilliant, it works! Thank you so much for the solution and swift reply. I will definitely accept it as solution. Just one improvement: the total comes as sum of each city counting. Is it possible to count the total figures independently?</description>
    <pubDate>Thu, 18 May 2023 10:05:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-18T10:05:48Z</dc:date>
    <item>
      <title>Count values above threshold in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3241745#M119296</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I appreciate if you can help me with the below. I have 4 cities and 4 stores and want to build a 4x4 performance matrix and count&amp;nbsp; values above 90%. The counting should be both in columns and rows as shown in below snapshot. City 1 has only one store (#2) above 90%, while Store 1 has two cities above 90% (#2, #4). Important also that the matrix works with the four filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both the attached dataset and matrix table are made up numbers and don't match.&amp;nbsp;I posted just first 6 rows of the data, because the full dataset exceeds the 20K allowed characters. I will try to post again in a new thread coming soon. I hope it works, if not, please see if you can help with the below.&lt;/P&gt;&lt;P&gt;I googled and watched youtube videos and it seems I should use summarize, summarizecolumns, addcolumns, etc, but I havent been successful in my attempts for many days already.&lt;/P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;Q1&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;TD&gt;Actuals&lt;/TD&gt;&lt;TD&gt;54.0&lt;/TD&gt;&lt;TD&gt;60.1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;City 1&lt;/TD&gt;&lt;TD&gt;Store 1&lt;/TD&gt;&lt;TD&gt;Q1&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;TD&gt;Best Case&lt;/TD&gt;&lt;TD&gt;54.0&lt;/TD&gt;&lt;TD&gt;60.1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;City 1&lt;/TD&gt;&lt;TD&gt;Store 1&lt;/TD&gt;&lt;TD&gt;Q1&lt;/TD&gt;&lt;TD&gt;2023&lt;/TD&gt;&lt;TD&gt;Commit&lt;/TD&gt;&lt;TD&gt;54.0&lt;/TD&gt;&lt;TD&gt;60.1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 18 May 2023 13:26:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3241745#M119296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-18T13:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count values above threshold in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3241749#M119297</link>
      <description>&lt;P&gt;Unfortunately, I am not able to post the entire dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 07:43:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3241749#M119297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-18T07:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Count values above threshold in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3241823#M119303</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Place the following measure in the values of the matrix instead of the current one.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Above 90% =
VAR T =
    SUMMARIZE (
        'Table',
        'Table'[GEO],
        'Table'[Store],
        "@Percentage", [Percentage Measure]
    )
RETURN
    IF (
        COUNTROWS ( T ) = 1,
        [Percentage Measure],
        COUNTROWS ( FILTER ( T, [@Percentage] &amp;gt; 0.9 ) )
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 May 2023 08:37:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3241823#M119303</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-18T08:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count values above threshold in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3241970#M119314</link>
      <description>&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;, this is brilliant, it works! Thank you so much for the solution and swift reply. I will definitely accept it as solution. Just one improvement: the total comes as sum of each city counting. Is it possible to count the total figures independently?</description>
      <pubDate>Thu, 18 May 2023 10:05:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3241970#M119314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-18T10:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Count values above threshold in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3242456#M119341</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure what exactly do you mean but I'm sure it can be done. So would you please clarify with a screenshot that includes some markups?&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 13:58:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3242456#M119341</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-18T13:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Count values above threshold in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3243838#M119425</link>
      <description>&lt;P&gt;tamerj1, thank you for still being around.&lt;/P&gt;&lt;P&gt;Ideally, row "Total" should be 1 as only store 1 is above 90. The solution provided is generating 5 (the sum of above 90s in all cities). Hope that clarifies.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 07:41:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3243838#M119425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-19T07:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Count values above threshold in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3243956#M119429</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Above 90% =
VAR T1 =
    SUMMARIZE ( 'Table', 'Table'[GEO], "@Percentage", [Percentage Measure] )
VAR T2 =
    SUMMARIZE ( 'Table', 'Table'[Store], "@Percentage", [Percentage Measure] )
RETURN
    SWITCH (
        TRUE (),
        HASONEVALUE ( 'Table'[GEO] ) &amp;amp;&amp;amp; HASONEVALUE ( 'Table'[Store] ), [Percentage Measure],
        HASONEVALUE ( 'Table'[Store] ), COUNTROWS ( FILTER ( T1, [@Percentage] &amp;gt; 0.9 ) ),
        COUNTROWS ( FILTER ( T2, [@Percentage] &amp;gt; 0.9 ) )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 08:46:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3243956#M119429</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-19T08:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count values above threshold in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3244030#M119435</link>
      <description>&lt;P&gt;This works like a charm! Fantastic! Thanks a million &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 09:36:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3244030#M119435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-19T09:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count values above threshold in a matrix table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3271192#M121256</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;, the formula works except that it's extremely slow to load. It takes around 1min to load/respond when a filter is changed (from Q1 to Q2, for instance). I was trying to find alternatives, but without success.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help once more? Thank you in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 19:29:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-values-above-threshold-in-a-matrix-table/m-p/3271192#M121256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-06T19:29:40Z</dc:date>
    </item>
  </channel>
</rss>

