<?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 number of clients above a certain value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-of-clients-above-a-certain-value/m-p/3037979#M104078</link>
    <description>&lt;P&gt;Wow! Thank you so much, this worked perfectly.&lt;BR /&gt;&lt;BR /&gt;Only added a "+0" at the end so the result is never null.&lt;BR /&gt;&lt;BR /&gt;Thanks again &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2023 14:29:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-01-23T14:29:42Z</dc:date>
    <item>
      <title>Calculate number of clients above a certain value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-of-clients-above-a-certain-value/m-p/3037599#M104045</link>
      <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;&lt;BR /&gt;I'm having trouble with this measure. I would like to calculate the number of clients with a reception rate above 75%. Here's a simplified version of my dataset :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Client&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Month of package&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;reception Status&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BFA&lt;/TD&gt;&lt;TD&gt;01/22&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Received&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;COL&lt;/TD&gt;&lt;TD&gt;01/22&lt;/TD&gt;&lt;TD&gt;Not received&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BFA&lt;/TD&gt;&lt;TD&gt;02/22&lt;/TD&gt;&lt;TD&gt;Received&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;COL&lt;/TD&gt;&lt;TD&gt;02/22&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Received&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically, I would like to show with a measure how many clients have a received more than 75% of all packages (one package a month). In this simple example, the measure would have "1" as a result, as only one client is above the 75% reception mark.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be even better if the result would be in % of all clients. So the final result would be 50%, as in 50% of clients have a received more than 75% of all their packages.&lt;BR /&gt;&lt;BR /&gt;Thank you very much in advance for your help. I hope this is clear &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Antonio Trigo da Roza&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 11:57:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-of-clients-above-a-certain-value/m-p/3037599#M104045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-23T11:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate number of clients above a certain value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-of-clients-above-a-certain-value/m-p/3037625#M104048</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , If you displaying at the client level &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Divide( Countrows(filter(Table, Table[reception Status] = "Received")), Countrows(Table) )&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 12:09:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-of-clients-above-a-certain-value/m-p/3037625#M104048</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-01-23T12:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate number of clients above a certain value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-of-clients-above-a-certain-value/m-p/3037658#M104052</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to write a measure like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;75PlusClientRate = 
VAR _table = 
ADDCOLUMNS(
    VALUES(TableName[Client]),
    "Rate",
    VAR _received =
    CALCULATE(
        COUNT(TableName[reception status]),
        TableName[reception status]="Received"
    )
    VAR _allstatus = 
    CALCULATE(
        COUNT(TableName[reception status])
    )    
    RETURN
    DIVIDE(_received, _allstatus)
)
VAR _ClientCount = COUNTROWS(VALUES(TableName[Client]))
VAR  _75PlusClientCount = 
COUNTROWS(FILTER(_table, [Rate]&amp;gt;=0.75))
RETURN 
DIVIDE(_75PlusClientCount, _ClientCount)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With your data sample, it worked like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 12:20:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-of-clients-above-a-certain-value/m-p/3037658#M104052</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-23T12:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate number of clients above a certain value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-of-clients-above-a-certain-value/m-p/3037665#M104053</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the intermediate count measure is like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;75PlusClientCount = 
VAR _table = 
ADDCOLUMNS(
    VALUES(TableName[Client]),
    "Rate",
    VAR _received =
    CALCULATE(
        COUNT(TableName[reception status]),
        TableName[reception status]="Received"
    )
    VAR _allstatus = 
    CALCULATE(
        COUNT(TableName[reception status])
    )    
    RETURN
    DIVIDE(_received, _allstatus)
)
VAR _ClientCount = COUNTROWS(VALUES(TableName[Client]))
VAR  _75PlusClientCount = 
COUNTROWS(FILTER(_table, [Rate]&amp;gt;=0.75))
RETURN 
_75PlusClientCount&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 12:22:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-of-clients-above-a-certain-value/m-p/3037665#M104053</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-23T12:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate number of clients above a certain value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-of-clients-above-a-certain-value/m-p/3037979#M104078</link>
      <description>&lt;P&gt;Wow! Thank you so much, this worked perfectly.&lt;BR /&gt;&lt;BR /&gt;Only added a "+0" at the end so the result is never null.&lt;BR /&gt;&lt;BR /&gt;Thanks again &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2023 14:29:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-number-of-clients-above-a-certain-value/m-p/3037979#M104078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-23T14:29:42Z</dc:date>
    </item>
  </channel>
</rss>

