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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Scatter Plot having two dates

Hello everyone,

I would like to have a scatter plot that displays the difference of number of rows (measure) between data source time and update time.

mrbuttons_0-1745473579226.png


I would like to have data source time in the X axis and update time in the Y axis. However, there's no option for me to display the update time in Y axis as it's showing me errors.

Is there a workaround to display two different dates in two different axis using a scatter plot?

Thanks!


1 ACCEPTED SOLUTION
v-menakakota
Community Support
Community Support

Hi @Anonymous ,

Thank you for reaching out to us on the Microsoft Fabric Community Forum.



To achieve a scatter plot in Power BI that compares two different datetime fields—source_time and update_time—on the X and Y axes respectively, a direct approach isn't possible since Power BI doesn't support datetime fields on both axes in scatter charts. As a workaround, you can create two calculated columns that convert each datetime field into a numeric format (Unix-style timestamps) using the DATEDIFF function.

Add new column:

source_time_numeric = DATEDIFF(DATE(2025,1,1), 'TimeData'[source_time], SECOND)

Add new column :

update_time_numeric = DATEDIFF(DATE(2025,1,1), 'TimeData'[update_time], SECOND)

duration minutes:

duration_minutes = DATEDIFF('TimeData'[source_time], 'TimeData'[update_time], MINUTE)
In Power BI Desktop, insert a Scatter chart visual.

  • Set the fields like this:
    X Axis → source_time_numeric.
    Y Axis → update_time_numeric.
    Tooltips → add source_time, update_time, duration_minutes.

    Please go through the pbix file.

    If this post was helpful, please give us Kudos and consider marking Accept as solution to assist other members in finding it more easily.

View solution in original post

3 REPLIES 3
v-menakakota
Community Support
Community Support

Hi @Anonymous ,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

v-menakakota
Community Support
Community Support

Hi @Anonymous ,

Thank you for reaching out to us on the Microsoft Fabric Community Forum.



To achieve a scatter plot in Power BI that compares two different datetime fields—source_time and update_time—on the X and Y axes respectively, a direct approach isn't possible since Power BI doesn't support datetime fields on both axes in scatter charts. As a workaround, you can create two calculated columns that convert each datetime field into a numeric format (Unix-style timestamps) using the DATEDIFF function.

Add new column:

source_time_numeric = DATEDIFF(DATE(2025,1,1), 'TimeData'[source_time], SECOND)

Add new column :

update_time_numeric = DATEDIFF(DATE(2025,1,1), 'TimeData'[update_time], SECOND)

duration minutes:

duration_minutes = DATEDIFF('TimeData'[source_time], 'TimeData'[update_time], MINUTE)
In Power BI Desktop, insert a Scatter chart visual.

  • Set the fields like this:
    X Axis → source_time_numeric.
    Y Axis → update_time_numeric.
    Tooltips → add source_time, update_time, duration_minutes.

    Please go through the pbix file.

    If this post was helpful, please give us Kudos and consider marking Accept as solution to assist other members in finding it more easily.
pankajnamekar25
Super User
Super User

Hello @Anonymous 

 

SourceTimeNumeric = DATEDIFF(DATE(1970,1,1), [Source Time], SECOND)  Xaxis

UpdateTimeNumeric = DATEDIFF(DATE(1970,1,1), [Update Time], SECOND)  Y axis

Add your measure to value section

Thanks,
 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors