Forum Discussion
X axis interval length
- 6 years ago
You can add columns to your table to get week, month, etc. Here is a quick way to get approximately half the number of dates in a calculated column (use your Date column instead of what is shown), and when you use it on the X axis, use a SUM( ) measure (so both rows with that "date" are added)..
OddDays = If(ISODD(Day('Date'[Date])), 'Date'[Date], 'Date'[Date]-1)If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
it's not averaging, it's aggregating. I think it's a wholly acceptable solution. The ask was to show more of your data in the visual. You can either have day level granularity and only plot a small part of the data, or you can have week level granularity and show 7x as much etc.
You could consider adding a date hierarchy so that the aggregations happen automatically, and you still have the option to drill down in the hierarchy as needed.
It is aggregation. The type of aggregation by default is Sum that makes no sense since I don't want the values for odd and even days to be summed. Instead I used averaging which makes better sense, however even that is incorrect. Ideally, I am looking for a way that will just label the X-axis with odd dates or even dates or in general dates spaced by some fixed value. This feature is available in most charting packages, not sure why Power BI does not have it.