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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

A countif formula for project count by month

Hi, 

I am new to powerbi and I am trying to create a dashboard to report on active projects. I want to be able to display how many active projects there are for each project manager each month. I have the project manager's name, the projects name, and forcasted closed date.  I am thinking about using it in a line graph.  For example, if Jenny has 5 active projects in January and one of then has a forecasted close date of 2/4/23 then the count for February would be 4 active projects.  I cannot figure out the countif formula to use in the line graph. 

 

Lopezma_0-1675893523433.png

 

1 REPLY 1
FreemanZ
Super User
Super User

hi @Anonymous 

try to 
1) creat an unrelated date table with at least date and month columns
2) write a measure like:
measure =
VAR _mindate = MIN(DateTable[Date])
VAR _maxdate = MAX(DateTable[Date])
RETURN 
COUNTROWS(
    FILTER(
       ALL(TableName), 
       TableName[StartDate]<=_maxdate&&TableName[CloseDate]>=_mindate
    )
)
 
3) plot a line chart visual with datetable[month] column to x axis and the created measure to value, project manager column to the legend.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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