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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
LToft
New Member

Counting "active" companies

Hi,

 

my simplified data is as follows:

 

TABLE1

CompanyID

CompanyName

 

TABLE2

ProductID

ProductName

ProductCreatedDate

CompanyID

 

TABLE3

InvoiceNumber

InvoiceDate

ProductID

I know how to find active companies last month based on created products (DistinctCount(CompanyID) where ProductCreatedDate(month) = LastMonth)

I know how to find active companies last month based on sold products (DistinctCount(CompanyID) where InvoiceDate(month) = LastMonth)

But how do I find a count of active companies for a given month, that has sold AND/OR created a product?

Thank you in advance for your help.

1 REPLY 1
MattAllington
Community Champion
Community Champion

It depends how your tables are related and what the true data is like. Can you post a sample workbook filled with sample data, tables joined, your working measures written



* 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.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.