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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
fedo29
Regular Visitor

Charts to display Dates and items

Hi guys,

 

lets say i using MS Project Data. I need to create a graph having on X-Axis timephased data ( Jan-Feb-March-April-June.........) and on Y-Axis the name on the Project. The value to display is for example a date ( Finish date) for each Project. In this way i can display as dot the finish date for each project.

Is this achivable?

 

Thanks 

 

Federico

1 ACCEPTED SOLUTION
Anonymous
Not applicable

There is a similar thread on this suggesting "... a scatter plot would best suit your requirement as you can put projects and dates along axis. Also check out custom visuals here for powerbi. There are few visuals that provide time based analysis such as Timebrush,  Pulsechart (check out this one particularly), Timeline and others" - see http://community.powerbi.com/t5/Desktop/Plotting-key-dates-of-a-project/m-p/73941#M30747

 

 

You could do it in R by dragging the 'Project Name' and 'Finish Date' fields to an R visual with code similar to below.  You'd then need to apply some formatting - see samples at https://community.powerbi.com/t5/R-Script-Showcase/bd-p/RVisuals

 

Simple R code:

library(ggplot2) # Plot visualization
library(scales) # date breaks on X axis

# Convert date to POSIXct.
dataset$`Finish Date`<- as.POSIXct(dataset$`Finish Date`,format="%Y-%m-%dT%H:%M:%OS")

# Avoid having to reference dataset$ each time in function calls
attach(dataset)

#Plot Project Name by Finish Date
ggplot(dataset, aes(x=`Finish Date`, y=`Project Name`)) +

#Present as points
geom_point () + 
  
#Use a month scale on the X-axis
scale_x_datetime(breaks = date_breaks("1 month"), labels=date_format("%d/%m/%Y")) + 
  
#Turn the X-axis title for better fit
theme(axis.text.x = element_text(angle = 90))

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

I believe that the only visual that you are going to have at your disposal to do this would be a Matrix visualization unless there is a custom visual out there. Power BI generally does not like text values for a Y-Axis. You might be able to get there using R.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

There is a similar thread on this suggesting "... a scatter plot would best suit your requirement as you can put projects and dates along axis. Also check out custom visuals here for powerbi. There are few visuals that provide time based analysis such as Timebrush,  Pulsechart (check out this one particularly), Timeline and others" - see http://community.powerbi.com/t5/Desktop/Plotting-key-dates-of-a-project/m-p/73941#M30747

 

 

You could do it in R by dragging the 'Project Name' and 'Finish Date' fields to an R visual with code similar to below.  You'd then need to apply some formatting - see samples at https://community.powerbi.com/t5/R-Script-Showcase/bd-p/RVisuals

 

Simple R code:

library(ggplot2) # Plot visualization
library(scales) # date breaks on X axis

# Convert date to POSIXct.
dataset$`Finish Date`<- as.POSIXct(dataset$`Finish Date`,format="%Y-%m-%dT%H:%M:%OS")

# Avoid having to reference dataset$ each time in function calls
attach(dataset)

#Plot Project Name by Finish Date
ggplot(dataset, aes(x=`Finish Date`, y=`Project Name`)) +

#Present as points
geom_point () + 
  
#Use a month scale on the X-axis
scale_x_datetime(breaks = date_breaks("1 month"), labels=date_format("%d/%m/%Y")) + 
  
#Turn the X-axis title for better fit
theme(axis.text.x = element_text(angle = 90))

Thank you very much, it works!!!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors