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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Colour scatter chart data by year rather than day

Hi everyone,

 

Pretty new to Power BI and trying to figure things out. I have made the below scatter chart which plots the data I want correctly. The data is coloured by the day it was collected and I have a slicer to select the well I want. Is there a way to maintain the individual data points but colour them based on year rather than the day? I've tried playing around with grouping or binning them but this seems to muck up the plot.

 

Picture1.jpg

 

 

Any help would be appreciated.

 

Cheers

Alan

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi Alan,

 

Yes you should be able to do this as follows:

  1. Put the Date field into Details, so that both Well & Date are in Details.
  2. Click the double-headed arrow in the visual header to drill-down so that you have one point per Well/Date combination (may not be needed?) 
  3. Put the Year field into Legend. This will colour the points by Year.

Hopefully that works. Please post back if needed.

 

Regards,

Owen

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

View solution in original post

2 REPLIES 2
OwenAuger
Super User
Super User

Hi Alan,

 

Yes you should be able to do this as follows:

  1. Put the Date field into Details, so that both Well & Date are in Details.
  2. Click the double-headed arrow in the visual header to drill-down so that you have one point per Well/Date combination (may not be needed?) 
  3. Put the Year field into Legend. This will colour the points by Year.

Hopefully that works. Please post back if needed.

 

Regards,

Owen

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn
Anonymous
Not applicable

Thanks Owen!

 

That works great. I just had to remove well from Details.

 

Cheers

Alan

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.