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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Graph # of Start Dates against # of Finish Dates per month in clustered column chart

Hello All,

Thanks in advance for any help here. 

 

I have a column of Start dates for projects as well as a column for Finish dates of projects. I would like to have a clustered column chart that shows, by month, how many projects are starting and how many projects are finishing. But I can't seem to get this data organized correctly. 

 

I've tried creating a DIMDate table, connecting the date field to both Start and Finish columns, with one as active and one as inactive. Then I created a measure to count Start dates using the relationship with DIMDate so I can have MonthName as my X Axis. I did the same for Finish dates, then put both into the chart but can't get the results I'm looking for. 

 

Is there an easier way to go about this? 

 

In the attached example Charter = Start and STT = Finish

forti4040_0-1715964120330.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Anonymous 

It sounds like your approach was correct. Try checking the steps and seeing where it went wrong.

I'm attaching an example with a scenario identical to what you're describing.

Projects table like :

Ritaf1983_0-1715966114620.png

Relationships with dates table :

Ritaf1983_1-1715966192202.png

Measures :

started = DISTINCTCOUNT('Table'[project id])
eneded_ = CALCULATE(DISTINCTCOUNT('Table'[project id]),USERELATIONSHIP(Calender[Date],'Table'[End date]))
Graph :
Ritaf1983_2-1715966260307.png

Results are accurate :

Ritaf1983_3-1715966310328.pngRitaf1983_4-1715966359988.png

The pbix is attached

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

7 REPLIES 7
Ritaf1983
Super User
Super User

Hi @Anonymous 

It sounds like your approach was correct. Try checking the steps and seeing where it went wrong.

I'm attaching an example with a scenario identical to what you're describing.

Projects table like :

Ritaf1983_0-1715966114620.png

Relationships with dates table :

Ritaf1983_1-1715966192202.png

Measures :

started = DISTINCTCOUNT('Table'[project id])
eneded_ = CALCULATE(DISTINCTCOUNT('Table'[project id]),USERELATIONSHIP(Calender[Date],'Table'[End date]))
Graph :
Ritaf1983_2-1715966260307.png

Results are accurate :

Ritaf1983_3-1715966310328.pngRitaf1983_4-1715966359988.png

The pbix is attached

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Anonymous
Not applicable

@Ritaf1983 Thank you for the help! This looks exactly like what I'm trying to do but even after following your guide step by step I'm struggling. One thing I noticed is that my Date column has a contact card icon next to it and yours doesn't. From looking online this is the explanation for the icon. 

forti4040_2-1715971515132.png

forti4040_0-1715971066133.png

As you can see in my screenshot the Month Names aren't showing and the quanities don't make any sense. 

forti4040_1-1715971251816.png

 

I've double checked all by data types and they match correctly.  Any thoughts on what I'm doing wrong here?

 

Hi @Anonymous 

From the image you attached, I see that there is a problem with the relationships in your model. In other words, you did not correctly link the dates table to the projects table.

The icon is not related, it just says that the date column is a primary key, I did not define my table as a date table for the model so it did not appear, but for example, now I changed it and it appears.

Ritaf1983_0-1716004992126.png

 

In the specific case of your topic, this has no effect.

 

To understand the problem with the model relationships, I need to see the pbix. You can save a copy of only relevant data without sensitive data and attach a link.

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Anonymous
Not applicable

@Ritaf1983 , I had two different ways of connecting to similar data (one imported and one through a dataflow). When I was doing some troubleshooting it looks like I comingled them in the formulas! I've now fixed that and used your approach and things are working as expected 🙂

 

Thank you for all of the help!

Happy to help 🙂

 Consider Accepting it as the solution to help the other members find it more quickly.

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Anonymous
Not applicable

@Ritaf1983 , I just tried publishing the desktop version to service and received the below error. Any thoughts on how I manage the fact that my date table (Calendar) is local and my other data is remote/imported?

forti4040_0-1716211127440.png

 

Anonymous
Not applicable

Please disregard, 
Instead of using the Calendar table in your suggestion I ended up using a different date table that is part of my data import already (DIMDate). This seems to have resolved the issue!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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