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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ClaireBear
Helper I
Helper I

Please Help - Divide Monthly Count of customers that spend, by total Customer Base value

Hi,  

 

I am trying to calculate the total number of registered customers (Measure - Total Base) and divide this value by the customers that purchase monthy (Measure - Customers that Spent) on a clustered colunn chart. The customer registration table will keep growing as customers sign up!

So if i have 50 000 customers that registered overall in the customer registration table, i want to divide this 50 000 by the count of customers that spend monthly to get a % . 

For example, of 50 000 customers, 3% are buying in January and 2% in February. 

 

With my calculations, my 50 000 gets broken down by month which is not what i want, im looking to use the total customer base count to do my calculation each month.  

 

Total Base = Count(Customer registration table[id])
Customers that Spent = DistinctCount(Sales Table[customerid])

Example 

ClaireBear_0-1611845269307.png

 

1 ACCEPTED SOLUTION
Payeras_BI
Super User
Super User

Hi @ClaireBear ,

 

Total Base =
CALCULATE ( COUNT ( 'Customer registration table'[id] ), ALL () )

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

1 REPLY 1
Payeras_BI
Super User
Super User

Hi @ClaireBear ,

 

Total Base =
CALCULATE ( COUNT ( 'Customer registration table'[id] ), ALL () )

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors