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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jasprice
Regular 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
Anonymous
Not applicable

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 )

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

 

Share some data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

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 )

Thank you!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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