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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Kolumam
Post Prodigy
Post Prodigy

Power BI with R Scripts, issue with scale_x_date

Hi All,

 

I have two column; Date and Water Usage. I was using ggplot to plot geom_point(), however the date is overlapped each other.

So try to use scale_x_date(date_breaks = "1 month",date_labels = "%b/%y"), however is not working due to the date format. 

 

#date format

dataset$Date_of_Cleaning__c = as.factor(dataset$Date_of_Cleaning__c)
dataset$Date_of_Cleaning__c = as.Date(dataset$Date_of_Cleaning__c,format="%d/%m/%Y")

 

I did change the date format using the code above, it shows error in seq.int(0, to0 - from, by)...

Anyone can help me to solve this issue?  

 

2.PNG1.PNG 

 

3 REPLIES 3
aaloulou
New Member

Hi, I am having excaltly the same error. Is there please any updates/issues for that? 

Thanks in adavnce

v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Kolumam,

 

Please check the date format in data view loaded into desktop. Make sure its data type is DAte rather than Date/Time, and check if its format is set to "%d/%m/%Y".

 

1.PNG

 

Best regards,

Yuliana Gu

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

Hi @v-yulgu-msft

 

The date data type is date type and still not working.

 

 3.PNG4.PNG

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.