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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Karim_Hossam
Microsoft Employee
Microsoft Employee

dates on Y axis

Hello,

I am trying to create a tracking report, to show either ticket has been updated in the same date of creation or not, I think about Line chart , but the issue is that I don't know how to present the dates (creation date and updated date) on the Y axes, could someone advise, how I can do this?(I already have this date in excel(ticket ID//creations date//updated date )Screenshot_1.png

as example I want to show creation date instead of 1 and updated date instead of 2(in the below screenshot)

1 ACCEPTED SOLUTION
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Karim_Hossam,

 

I'm afraid it's hard to do with Power BI native visual. Maybe you can try a R visual. You can try it in this file.

1. Reformat the data.

dates_on_Y_axis

2. Create a R visual.

library(ggplot2)
dataset$Value <- as.Date(dataset$Value, "%Y-%m-%d")
ggplot(data = dataset, aes(x = dataset$"Ticket ID", y = dataset$Value, group = dataset$Attribute)) + geom_line() + geom_point()

dates_on_Y_axis2

 

Best Regards,

Dale

 

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @Karim_Hossam,

 

I'm afraid it's hard to do with Power BI native visual. Maybe you can try a R visual. You can try it in this file.

1. Reformat the data.

dates_on_Y_axis

2. Create a R visual.

library(ggplot2)
dataset$Value <- as.Date(dataset$Value, "%Y-%m-%d")
ggplot(data = dataset, aes(x = dataset$"Ticket ID", y = dataset$Value, group = dataset$Attribute)) + geom_line() + geom_point()

dates_on_Y_axis2

 

Best Regards,

Dale

 

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
vanessafvg
Super User
Super User

@Karim_Hossam what does your data model look like?

 

if you want to create a measure against 2 dates you will need to have an active relastionship for one date and an inactive for the other and then use the userelationship dax command, you will also then need to have a calendar table, can you screen shot your model?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




tets.png

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.