Forum Discussion
Scatter chart - two data points not in date order
- 4 years ago
Hi Anonymous ,
I have tested your data and could replicate the problem and also understand the grouping by date and legend together and then sorting.
Since last 2 days, I am trying sorting of x axis date with an index column, but somehow it does not allow date.
One more workaround is to use line chart in place of scatter chart, and not use the line color but just the marker color, and sort by date. It works fine even with legend, but you need to specify legend colors manually while publishing the report.
Hope it helps.
Hi Anonymous
There is one work around that you can check if possible in your scenario
you can assign color to different category using DAX
Color = SWITCH('Table'[Product],
"A","Blue",
"B","Green",
"C","Yellow",
"D","Gray",
"Brown")
Then use Marker conditional color expression to Field Value
Then you will get results like below sorted by date
but you will not get the Legends as what color represtenting what data.
may be a table right next to visual something like below to give view like legends. similar conditional formatting apply on the table
see if this works for you.
This worked for me. Thanks
Matt