<?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: Check if all rows for a certain customer are marked as &amp;quot;churned&amp;quot; in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-all-rows-for-a-certain-customer-are-marked-as-quot/m-p/886316#M7705</link>
    <description>&lt;P&gt;Your formula calculates the churns on deal level, not on customer level. I need the total count of customers for whom all deals are marked as churn.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2019 16:07:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-12-30T16:07:24Z</dc:date>
    <item>
      <title>Check if all rows for a certain customer are marked as "churned"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-all-rows-for-a-certain-customer-are-marked-as-quot/m-p/885736#M7677</link>
      <description>&lt;P&gt;I have a dataset where one customer can have multiple products. He can be live on certain products, but churned on other products.&lt;BR /&gt;He will only be marked as a churned customer if he is churned from all products.&amp;nbsp;&lt;BR /&gt;How can I loop through the product status of each customer with DAX, checking if all of the statuses are lost, and then counting these up so I have the number of churned customers?&lt;BR /&gt;Example data:&lt;BR /&gt;Customer ID&amp;nbsp; &amp;nbsp;Product ID&amp;nbsp; &amp;nbsp; Status&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Live&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Lost&lt;BR /&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Lost&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Lost&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Live&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Lost&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The count I would want for the dataset above is 1, for customer 2. The other ones have Live deals so are not churned.&lt;/P&gt;&lt;P&gt;I tried using COUNTX/COUNTAX but to no avail, for example:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Churned Customers = COUNTX( FILTER('Deal Status','Deal Status'[Deal - Status] = "Lost"),'Deal Status'[Deal - Status])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 29 Dec 2019 16:00:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-all-rows-for-a-certain-customer-are-marked-as-quot/m-p/885736#M7677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-29T16:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Check if all rows for a certain customer are marked as "churned"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-all-rows-for-a-certain-customer-are-marked-as-quot/m-p/885740#M7678</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
    VAR __Table = SUMMARIZE('Table9',[Customer ID],"TotalCount",COUNTX('Table9',[Product ID]),"LostCount",COUNTX(FILTER('Table9',[Status]="Lost"),[Product ID]))
RETURN
    COUNTROWS(FILTER(__Table,[TotalCount] = [LostCount]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2019 16:45:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-all-rows-for-a-certain-customer-are-marked-as-quot/m-p/885740#M7678</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2019-12-29T16:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Check if all rows for a certain customer are marked as "churned"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-all-rows-for-a-certain-customer-are-marked-as-quot/m-p/885972#M7684</link>
      <description>&lt;P&gt;Thank you, but this is not giving me back entirely what I need. This formula returns a count also when a client has churned on one product, but is live on another. How can I filter out the clients that do have a churn on one product but are live on another?&lt;BR /&gt;Example of the data where it goes wrong:&lt;BR /&gt;&lt;BR /&gt;Product ID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Client&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Lost Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Deal status&lt;BR /&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;August 23,2018&amp;nbsp; &amp;nbsp;Churned&lt;BR /&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Live&lt;BR /&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Live&lt;BR /&gt;&lt;BR /&gt;This should not give me back a count as churned customer, but it did.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 06:49:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-all-rows-for-a-certain-customer-are-marked-as-quot/m-p/885972#M7684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-30T06:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Check if all rows for a certain customer are marked as "churned"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-all-rows-for-a-certain-customer-are-marked-as-quot/m-p/886137#M7693</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Try this measure,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ChurnedCustomer = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAr Live_count=CALCULATE(DISTINCTCOUNT(Sheet1[Prod ID]),FILTER(Sheet1,Sheet1[Status]="Live"))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var Total=DISTINCTCOUNT(Sheet1[Prod ID])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total-Live_count&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;If i solve your problem mark it as solution and give kudoes.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks &amp;amp; regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Pravin Wattamwar&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class="vanity-name__domain"&gt;&lt;A href="http://www.linkedin.com/in/" target="_blank"&gt;www.linkedin.com/in/&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class="vanity-name__display-name"&gt;pravin-p-wattamwar&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Dec 2019 10:41:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-all-rows-for-a-certain-customer-are-marked-as-quot/m-p/886137#M7693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-30T10:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Check if all rows for a certain customer are marked as "churned"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-all-rows-for-a-certain-customer-are-marked-as-quot/m-p/886316#M7705</link>
      <description>&lt;P&gt;Your formula calculates the churns on deal level, not on customer level. I need the total count of customers for whom all deals are marked as churn.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 16:07:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-all-rows-for-a-certain-customer-are-marked-as-quot/m-p/886316#M7705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-30T16:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: Check if all rows for a certain customer are marked as "churned"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-all-rows-for-a-certain-customer-are-marked-as-quot/m-p/886726#M7715</link>
      <description>&lt;P&gt;its on customer level only.&lt;/P&gt;&lt;P&gt;In my data set i have taken customer as product ID and prod id as ID. Just rename the columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pravin Wattamwar&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2019 06:40:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-all-rows-for-a-certain-customer-are-marked-as-quot/m-p/886726#M7715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-31T06:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Check if all rows for a certain customer are marked as "churned"</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-all-rows-for-a-certain-customer-are-marked-as-quot/m-p/886729#M7716</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;This will be formula as per your data set.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ChurnedCustomer =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAr Live_count=CALCULATE(DISTINCTCOUNT(Sheet1[Customer ID]),FILTER(Sheet1,Sheet1[Status]="Live"))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Var Total=DISTINCTCOUNT(Sheet1[Customer ID])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Total-Live_count&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Pravin Wattamwar&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 31 Dec 2019 06:42:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Check-if-all-rows-for-a-certain-customer-are-marked-as-quot/m-p/886729#M7716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-31T06:42:02Z</dc:date>
    </item>
  </channel>
</rss>

