Forum Discussion
Colleen
7 years agoHelper I
Viewing months based on current date on charts
Hello, How can I change the order and view of months on the x-axis on a graph? I need to display financial YTD sales information. I have used the time intelligence functions to create a new ...
- 7 years ago
Here's how I would do it:
- Make a copy of your date column getting the start of the month: startofmonth = STARTOFMONTH(dates[yourdatecolumnhere])
- Change the format of that column to March 2001 in the Modeling tab.
- Add to your chart and make sure the X axis is listed as categorical.
You should end up with something like this:
- Make a copy of your date column getting the start of the month: startofmonth = STARTOFMONTH(dates[yourdatecolumnhere])
- 7 years ago
Ah, I see. It's because of your measure formula. Here's what I think are your options:
- You can remove your measure and replace it with the LineTotExcl field instead. That will include the missing months, but will make your chart start at January.
- I think in order to get the graph to start at April, you have to create a custom date/calendar table to create your fiscal year. I'm not familiar with how to do that, but I've read about others having to do this before. I won't be able to help you on that part, unfortunately.
pbeye
7 years agoResolver II
Here's how I would do it:
- Make a copy of your date column getting the start of the month: startofmonth = STARTOFMONTH(dates[yourdatecolumnhere])
- Change the format of that column to March 2001 in the Modeling tab.
- Add to your chart and make sure the X axis is listed as categorical.
You should end up with something like this:
- Colleen7 years agoHelper I
I admit I missed something sorry pbeye !
Having returned a bit more fresh faced this monday I've realised my graph only spans from April to December as shown:
Graph runs April to December rather than 12 months prior
The display worked fine for when I was only looking at this year as it ran April to July (most recent month with data).
Please what do I need to do for mine to run the full 12 months until March (the end of our financial year)? I've followed the steps exactly with this outcome.
Kind regards,
Colleen