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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
AsyrafDzul
Regular Visitor

Time vs Time Scatter Chart

AsyrafDzul_0-1778348894930.png

Hi All,

I've been trying to recreate a scatter chart i made in excel in the powerBI. I've read it somewhere that the x & y-axis needs to be a decimal value in order to create a scatter chart. That's another problem solved. But how do i change the display data into time again instead of decimal point? I've tried looking into the visual format, but nothing came up. Appreciate y'all insights regarding this issue.

Thanks in advance!

9 REPLIES 9
v-echaithra
Community Support
Community Support

Hi @AsyrafDzul ,

Thank you @stoic-harsh  for your valuable innputs.
Try this:

Click dropdown on X Axis field

Set aggregation = Average or Sum

Same for Y Axis

Do NOT choose "Don't summarize"

 

If you still see grouped points after adding Staff Name to Values, create a unique row ID:

 

RowID = 'Table'[Staff Name] & "-" & FORMAT('Table'[Date],"yyyymmdd")

 

Then use RowID in Values instead of Staff Name.

Also keep your time decimal columns as Calculated Columns, not Measures. That will give you one dot per row/record instead of aggregated totals.

Hope this helps.

AsyrafDzul
Regular Visitor

Hi Mr. @stoic-harsh ,

AsyrafDzul_0-1778417437960.png

 

Everything works perfectly! I am sorry if this sounded like I am asking for a step-by-step tutorial. How do I change the axes display into a time format? I tried to work around the "format visual" but nothing came out to change the value.

No worries. I am here to help anyways.

Click this icon in Visualizations pane, then go to Visual > X-axis > Values > (set display units to None) > Adjust Decimal Place to 2 D.P

Repeat for Y-axis. And done!

stoicharsh_0-1778427491323.png

Best,

Harshit

Hi @stoic-harsh ,

 

Thanks, it works! Now I'm thinking to display these dots in an individual value instead of sum so that I can see the actual value when I enable the Within Window/After 0930/Before 0830 filter.

AsyrafDzul_0-1778464488738.png

But when I clicked "Don't Summarise", the display shows an error as per snapshot below.

AsyrafDzul_1-1778464580567.png
I did some search on how to solve this, but none came up (again). Do I have to setup another DAX code for this?

 

Sorry for the hard time,

Asyraf

 

Power BI aggregates values by default. The fix is to give each record a unique identityCreate a New Column (yeah, you were right🙂) :

// Returns a unique identifier for each record
Concatenated = TEST[Name] & " | OfficeIn: " & TEST[OfficeBadgeIn] & " | SiteIn: " & TEST[SiteBadgeIn]

Replace Staff Name in the (Values field well) with this new column.

Then, for a cleaner look, go to Visualizations pane > Category labels (turn on) > Background (turn on).

 

Note: Records with identical Name, OfficeIn, and SiteIn values will overlap on the plot, but this shouldn't affect identifying entries outside/inside your target time window. Let me know if it does, and we can come up with a work-around for that. Final result below (4 records of a person Alice; 1 dot is behind the orange one😄. Hope you get it. Since officein and sitein was same for that dot) :

stoicharsh_0-1778494718902.png

Best,

Harshit

lbendlin
Super User
Super User

You can use the Deneb visual to work around that limitation

stoic-harsh
Resolver IV
Resolver IV

Hey @AsyrafDzul,

Here is a neat trick! Since scatter plots require numeric axes, we convert time values into HH.MM decimal format - readable as time (dimension), plottable as a number (measure). Example:

stoicharsh_0-1778356993568.png

// Calculated Column
OfficeBadgeIn_HHMM = 
VAR Hours   = HOUR('TEST'[OfficeBadgeIn])
VAR Minutes = MINUTE('TEST'[OfficeBadgeIn])
RETURN
    Hours + ( Minutes / 100 )

The HH.MM format is numeric enough for Power BI to plot, and intuitive enough to read as time (use appropriate call-outs for business users).

Hope it helps! Please do share if you find other workarounds.

Best,

Harshit

Hi Mr. @stoic-harsh ,

May I know whether the formula should be created in Excel before importing it as a database, or can it be written directly in ‘Transform Data’? I’m new to this, thank you very much for your time! 😀

Hello Sir 😆,

Simply load your data without any transformation into the model (I assume, your table contains OfficeBadgeIn and SiteBadgeIn values in time format). Then, use the DAX I provided in previous reply, to create 2 columns in HH.MM decimal format (don't use New Measure here). Let me know in case of any questions.

Best,

Harshit

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.