Forum Discussion
Viewing months based on current date on charts
- 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.
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
- pbeye7 years ago
Resolver II
Hi Colleen ,
I suspect it has something to do with your filters or your fiscal year formula. Can you provide an example for each of those?
- Colleen7 years ago
Helper I
Hi pbeye ,
This is how I calculate my YTD values
Sales YTD Fiscal = TOTALYTD( SUM('Raw Data'[LineTotExcl]), 'Raw Data'[TxDate].[Date], "31/3" )And here are the filters and data values on the visual:
Thank you so much for your continued help!
Kind regards,
Colleen
- pbeye7 years ago
Resolver II
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.