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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Distinct Count of Active Customers in the trailing 12 months for each month

This may be a fun challenge to you superstars (see limitation at the end): 

 

I need to show Distinct Active Customers for 12 months by month (Rolling 12 month active customer count).

 

So I need a measure that will DISTINCTCOUNT CustomerID by < the time period > where Revenue for the CustomerID is not null in that <timeperiod>

 

LIMITATION: We have to use a DataCube that does not allow Columns or Tables. We can only make Measures

 

The limitation is something I cannot get around otherwise I can do this.

 

Here is a sample and the data fields:

SAMPLE OUTPUT201801201802201803201804201805201806201807201808
Distinct Active Customers               820        900                 960   1,004   1,111   1,140   1,130   1,125
 ____________________________        
         
TableCustomer_SalesDateTable     
FieldCustomer IDRevenueCalendarDate     
TypeTextNumberDate     

 

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

Are the key columns and relationship among tables like below?

8.png

Best Regards

maggie

Anonymous
Not applicable

Indeed they are Maggie.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors