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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
stokidez
Helper III
Helper III

Showing 2 Date Values on a Line Graph

Hi, hoping someone can help please. I'm trying to display a trend graph of the number of breaches which have occured over a period of time as well as the number which have been resolved on the same visual, both being displayed as two separate lines. When I add Date Resolved (GMT) to the Axis nothing happens to my graph - where am I going wrong please?

 

Thanks! 

 

stokidez_0-1617259603396.png

stokidez_1-1617259620317.png

 

 

1 ACCEPTED SOLUTION

@stokidez , Try USERELATIONSHIP like given below. Only needed for inactive relation

 

Resolved Date count = CALCULATE(COUNT(Employee[Employee Id ]),USERELATIONSHIP(Employee[Date Resolved],'Date'[Date]) )

 

Identified date count = CALCULATE(COUNT(Table[Title]),USERELATIONSHIP(Employee[Date Identified],'Date'[Date]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
stokidez
Helper III
Helper III

Thanks @amitchandak - thats worked! 😁

 

stokidez_0-1617270234899.png

 

amitchandak
Super User
Super User

@stokidez , if you have 2 dates. You need to create a common date table join both dates with that. One join will be inactive. That you can activate in a measure using use relationship

 

refer my blog on that https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak thanks for your help!

 

I've created a date and linked to the two date fields (date resolved and date identified) as such:

stokidez_0-1617260691885.png

 

If you can explain in a bit more detail how you would create the measure that would be great.

 

Thanks,

@stokidez , Try USERELATIONSHIP like given below. Only needed for inactive relation

 

Resolved Date count = CALCULATE(COUNT(Employee[Employee Id ]),USERELATIONSHIP(Employee[Date Resolved],'Date'[Date]) )

 

Identified date count = CALCULATE(COUNT(Table[Title]),USERELATIONSHIP(Employee[Date Identified],'Date'[Date]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors