Dear Power BI Community,
I'd appreciate any hint on the following issue:
I have created a column chart showing certain values per month and applied a relative date filter showing me the last 12 months from today. What I get is a diagram with the months sorted in chronological order (Jan - Feb - .... - Dec.). However, I would like to see the months sorted in a way that the current month (e. g. August) is on the rightmost side of the chart and all other months are to its left. So the sequence I would like my column chart to appear should look like:
September - October - November - December - January - ... - August
Does anybody know a way to achieve this?
Thanks in advance and best regards
Oliver
Solved! Go to Solution.
Hi @Olifer ,
So first you want a separate calendar table. There are a lot of versions of this but below is a table calc you can use to generate a new table for a financial year. Just amend theFYSTART/END variable dates to either be manual dates or relate to a min/max date in your data:
Hi Daniel,
thanks a lot for your proposal! My column is formatted as date/time and I tried setting up an additional calendar table with some sort of index, but I didn't manage to get it working.
My next idea was to calculate within the same table a new column which concatenates the difference between today and the date in the respective row (in "months") with the name of the month, so this column looks e. g. as follows:
25 July
32 December
34 October
09 November
Then my sorting for the past 12 months in the visual is ok (since August 2022 would be 0, July 2022 would be 1, ....), but it looks a little bit stupid since there is a number in front of the month's name which does not reflect the "usual" number of the month (e. g., July would be the seventh month, so having a "1" before is disturbing).
Not sure whether I manage to express myself clearly - sorry.....
Any advice is still highly appreciated...
Best regards
Oliver
Hi @Olifer ,
So first you want a separate calendar table. There are a lot of versions of this but below is a table calc you can use to generate a new table for a financial year. Just amend theFYSTART/END variable dates to either be manual dates or relate to a min/max date in your data:
I got it working - thanks a lot for your support!
Best regards
Oliver
Hi @Olifer
If you have a calendar table for your data then I would suggest creating an index in the calendar table which you can then sort and order your date value by that index.
Daniel.
User | Count |
---|---|
122 | |
63 | |
56 | |
46 | |
41 |
User | Count |
---|---|
114 | |
66 | |
59 | |
59 | |
45 |