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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors