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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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