Forum Discussion

mstefancik's avatar
mstefancik
Advocate IV
10 years ago

Create scatter chart with date on x axis

Hello I have got simple test data set:

 

 

 

 

 

 

 

 

 

 

 

 

 

I would like to create scatter chart I am used to do in R with plot (x,y).

 

I have got on problem

Chart is still aggregating values on x and y axis. I got over it by creating index column and using it in details.

But how to create chart when I want to use my Date column in x axis? (I do not want to create separate columns for day,month,quarter as it will show you only number in mousehover ).

 

My idea is to use directly date column to have 1-Jan, 2-Jan etc on x axis.

Is it possible? if yes, how?

 

Thanks

To have all

 

4 Replies

  • greggyb's avatar
    greggyb
    Resident Rockstar

    You can set the display format of your date in the 'Modeling' ribbon menu under Data Format, to determine how the date will be displayed in visuals.

     

    If your concern is the default date hierarchy that is generated when adding a date to an axis, you can choose to display just the date. Some reading on this feature.

  • Hi mstefancik 

     

    Here is Scatter Plot - Categorical X Axis chart which will help to get categorical variable on X-axis and on Y-axis with or without aggregating them( you can change it by summarizing or not summarizing them).

     

    Scatter Plot - Categorical X Axis .PBIVizEdit.com

     

     

     

     

     

     

     

     

     

     

     

     

    Download link for the custom visual file in this page

    https://pbivizedit.com/gallery/scatter-plot-with-categorical-data 

     

     

    This was made with our Custom Visual creator tool PBIVizEdit.com. With this tool,

    • anyone, irrespective of technical skills, can create their own visuals
    • 15 minutes to create a visual from scratch
    • opens up many additional attributes to edit (for e.g. labels, tooltips, legends position, etc)

    Give this a shot and let us know if you face any problem/errors.
    You can use the editor to modify your visual further (some modifications cannot be done in Power BI window and have to be in editor).

    Thanks,
    Team PBIVizEdit