Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jnn4282
Helper II
Helper II

Filter the total count of Withdraw Numbers

https://we.tl/t-mn5deO0fvy

Hi, friends,

I need your help finding a solution to my issue.

My excel data contains customer ID (unique) and is categorized with registration date, use date, withdrawal date, and rank.

I can count the total number of customers by distinct count. But I can't get the total number of customers who withdraws their

membership.

LeavingCustomer = CALCULATE(DISTINCTCOUNT(Table[CustomerID]),Table[WithdrawDate]) throughs an error.
jnn4282_0-1654309683396.png

Can someone help me Please  ...

1 ACCEPTED SOLUTION
MattAllington
Community Champion
Community Champion

The filter clause (second parameter) in CALCULATE either needs to be a true/false statement (ie column= value) or a table function. Change this last parameter to NOT(ISBLANK(Table[WithdrawDate]))



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

View solution in original post

2 REPLIES 2
MattAllington
Community Champion
Community Champion

The filter clause (second parameter) in CALCULATE either needs to be a true/false statement (ie column= value) or a table function. Change this last parameter to NOT(ISBLANK(Table[WithdrawDate]))



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Thank you dear MattAllington for your quick response.

It helped me a lot

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors