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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
julsr
Resolver III
Resolver III

Scatter Plot creates values in the axis x when multiple months are selected

Hi everyone,

 

I have a scatter plot with an issue: when multiple months are selected, it plots two days/months as a single point (for example, if viewing from Jan 01 to Feb 01, values for both first days appear at a single point on the x-axis). I created a column with yyyymmdd concatenated, but the scatter plot is still showing values up to 99 even when they don't exist in the calculated column. How can I solve this problem?

 
 

julsr_0-1747238377122.png

 

1 ACCEPTED SOLUTION

Thanks! I found a solution, I used Julian Date format in my x axis and it worked without problem. This is the code.

julian_measure=
IF(
    ISBLANK(table[date]),
    0,
    DATEDIFF(DATE(1900, 1, 1), table[date], DAY)
)

View solution in original post

2 REPLIES 2
v-csrikanth
Community Support
Community Support

Hi @julsr 

Thanks for reaching out to the community!

What you're experiencing in the scatter plot is a common issue when Power BI auto-aggregates or incorrectly interprets date-like fields — especially when using concatenated strings like yyyymmdd instead of proper date types.

Here’s how to resolve it:

  1. Ensure your X-axis field is of Date data type, not text. Concatenated date strings (like yyyymmdd) can cause the scatter plot to treat them as categorical or numeric, leading to odd plotting behavior (like values going up to 99).
  2. Use a proper date column for the X-axis, such as a Date type column in your data model, not a calculated text-based column. You can always format this column visually if you want a custom display (e.g., "MMM dd").
  3. If you're using a calculated column, try creating it like this:
    ***************************************************
    DateFormatted = DATE(Year, Month, Day)
    ***************************************************
    Then use this in the scatter plot's X-axis.

Also, make sure the X-axis is set to continuous (not categorical), which allows Power BI to render the data points appropriately over time.

Let me know if this resolves the issue, and if it does, please mark it as the accepted solution so others can benefit!


Best regards,
Srikanth
Power BI & Fabric Community Support Team

 

Thanks! I found a solution, I used Julian Date format in my x axis and it worked without problem. This is the code.

julian_measure=
IF(
    ISBLANK(table[date]),
    0,
    DATEDIFF(DATE(1900, 1, 1), table[date], DAY)
)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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