Forum Discussion
Deneb Visual Vegalite - Duplicate labels (Month-Year) on X axis
Hi malpani, thanks for the .pbix. For both of your x-axes keep the type as temporal and make sure you set
"timeUnit": "yearmonth",
Going by your formatting, I'm assuming you only want the month and year. This should get rid of the duplicates.
If this is enough to get you going please consider liking this reply and choosing it as the solution. Otherwise, I'm happy to help further.
- malpani2 years ago
Helper II
Hi giammariam
Thanks for your help.But I expect the marks shown by date and axis labels by unique Month-Year.
As you see, if you change both X axis encoding to temporal, marks overlap with each other.
We had two marks in July C3 and C5 but with temporal they overlap with each other which is not readable.
So, I would like to keep the same position for C3 and C5 by date in a month but when it comes to label show only once per month.- malpani2 years ago
Helper II
Hi giammariam : Do you think it is possible to have month-Year on X axis but marks shown by dates.
What if we calculate Month-Year column Date column Power Query or by DAX and then use that column ?- giammariam2 years ago
Solution Sage
malpani, apologies, but I'm not fully comprehending what your end goal is. However, I have a sneaking suspicion that your solution will involve resolving the scales. Read more about resolve here.