cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jasprice Frequent Visitor
Frequent Visitor

Running Count of Companies By Month

Hello,

 

I am trying to create a measure that will allow me to count the number of companies in my data set after the company has reached a specific stage.   The data is based on a process flow and stage 3 is the final stage.

 

Pseudo code for calc would be:

 

Running Count = Count the number of [Company Name] by Month[Stage Date] where Stage = 3

 

Table fields are:

 

Company Name

Stage

Stage Date

 

I have seen a number of examples of running sums based but I am new to DAX and need a bit of assistance.

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Running Count of Companies By Month

With Month on rows you can use the following code that will give you the count of companies in stage 3 during that month

Running Count=
CALCULATE( COUNTROWS( TABLE ), TABLE[STAGE] = 3 )
3 REPLIES 3
Super User
Super User

Re: Running Count of Companies By Month

With Month on rows you can use the following code that will give you the count of companies in stage 3 during that month

Running Count=
CALCULATE( COUNTROWS( TABLE ), TABLE[STAGE] = 3 )
Super User
Super User

Re: Running Count of Companies By Month

Hi,

 

Share some data and show the expected result.

Highlighted
jasprice Frequent Visitor
Frequent Visitor

Re: Running Count of Companies By Month

Thank you!

Helpful resources

Announcements
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

Top Ideas
Users Online
Currently online: 20 members 788 guests
Please welcome our newest community members: