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

created and closed dates on same axis

Hi Team,

I want to add a trend line for Open vs Closed bugs for last 1 year.

Open and Closed are 2 values in the [Status] column

Open bugs are tagged based on created date, whereas Closed is based on the resolution date. 

since these are 2 different dates, I was using Y-Axis and Secondary axis, with 2 measures created for Open and Closed

However we need this on one single axis. 

Can you please help?

 

Charuta_0-1753710410263.png

this is how the visual looks like, but need this on single axis

 

 

2 ACCEPTED SOLUTIONS
hnguy71
Super User
Super User

Hi @Charuta 

You'll still need two measures, one for created and one for closed. But to use one axis, you'll need a date table. Connect the date table to your fact table with two relationships, one active and one inactive.

For the relationship that has an inactive relationship, let's say for example the closed date, your measure for the inactive relationship would require the USERELATIONSHIP function. Sample:

Closed = CALCULATE(SUM([TABLE]Column)), USERELATIONSHIP(DATE_TABLE[Date_Column], FACT_TABLE[Closed_Date]))

 



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

v-kpoloju-msft
Community Support
Community Support

Hi @Charuta,

Thank you for reaching out to the Microsoft fabric community forum. Also, thanks to @hnguy71, for his inputs on this thread. I reproduced the scenario, and it worked on my end. I used my sample data and successfully implemented it.

vkpolojumsft_0-1753774020899.png

 


I am also including .pbix file for your better understanding, please have a look into it:

Hope this helps clarify things and let me know what you find after giving these steps a try happy to help you investigate this further.

Thank you for using the Microsoft Community Forum.

View solution in original post

3 REPLIES 3
Charuta
Frequent Visitor

thanks a lot, this worked!

v-kpoloju-msft
Community Support
Community Support

Hi @Charuta,

Thank you for reaching out to the Microsoft fabric community forum. Also, thanks to @hnguy71, for his inputs on this thread. I reproduced the scenario, and it worked on my end. I used my sample data and successfully implemented it.

vkpolojumsft_0-1753774020899.png

 


I am also including .pbix file for your better understanding, please have a look into it:

Hope this helps clarify things and let me know what you find after giving these steps a try happy to help you investigate this further.

Thank you for using the Microsoft Community Forum.

hnguy71
Super User
Super User

Hi @Charuta 

You'll still need two measures, one for created and one for closed. But to use one axis, you'll need a date table. Connect the date table to your fact table with two relationships, one active and one inactive.

For the relationship that has an inactive relationship, let's say for example the closed date, your measure for the inactive relationship would require the USERELATIONSHIP function. Sample:

Closed = CALCULATE(SUM([TABLE]Column)), USERELATIONSHIP(DATE_TABLE[Date_Column], FACT_TABLE[Closed_Date]))

 



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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