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
SDigital
Frequent Visitor

HELP: Opened and Closed Projects

Hi

 

I am trying to produce a graph that shows the amount of projects opened and closed per month.

 

My dataset consists of two tables: Project Definition and a Calendar table. 

The Project Definition table contains "date created" "status last changed date" and "status" . Project Definition and Calendar are joined on "date created".

I am using the "status last changed date" as the closed date if the status = closed

 

I have two measures counting closed and open projects, but the numbers don't add up on the graph. 

I suspect it is due to the nature of the relationship between the project and calendar table.

 

Any help is appreciated

Thanks in advance

 

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

Hi SDigital,

 

What's the table structure and relationship between your tables currently? Could you share the dax formula you are using?

 

Regards,

Jimmy Tao

Hi Jimmy

Relationship.JPG

 

I have a one to many relationship between Calendar/Date and Project Definition/Created Date

I also have another inactive relationship between Calendar/Date and Project Definiton/Status last changed date

 

The measures i am using to count the opened and closed projects are:

 

Projects Opened = COUNTROWS('Project Definition')

Closed Projects = CALCULATE(COUNTROWS('Project Definition'),('Project Definition'[Status] = "ZCLS"),USERELATIONSHIP('Project Definition'[Status last changed date],'Calendar'[Date]))

 

Thanks

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.

June 2025 community update carousel

Fabric Community Update - June 2025

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