Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
So I am wanting to create a Trend Chart that will show a rolling 12 month trend line. If I select Jan. 2019 as a slicer I want it to show from last January to this one in the trend.
I have been trying to use the below link but this doesn't seem to be working:
I tried this DAX calculation but all of the #'s are coming through the same no matter what month I look at...
Solved! Go to Solution.
I was able to accomplish similar to what you are wanting using the fine article below (has a working example as well)
Good luck,
You'll have to specify another coumn to sort your month name by, say a numerical MonthOfYear field populated with 1 through 12 depending on the month name for the row
You can do this in either the "Report" or "Data" view, by selecting the table then the field you are using in those visualizations, then in the Modeling tab select "Sort by Column" to specify your sort column
I was able to accomplish similar to what you are wanting using the fine article below (has a working example as well)
Good luck,
Thanks, I actually had found that after I posted this!
One stupid question, how do I get the chart and the drop down box to sort in monthly order? Right now they both go in alphabetical order...
You'll have to specify another coumn to sort your month name by, say a numerical MonthOfYear field populated with 1 through 12 depending on the month name for the row
You can do this in either the "Report" or "Data" view, by selecting the table then the field you are using in those visualizations, then in the Modeling tab select "Sort by Column" to specify your sort column
Ok, thanks, both of you guys have gotten me to get the 12 month rolling Trend to work. But I do have another question. Not sure if thsi should be a new post or not.
One of the measures I want to have as a rolling 12 month measure is a calculation. I'm not sure how to break this up, or do this. The calculation is a Percentage calculation. That goes something like this:
Percent = ((Rolling 3 month T sum) * 12 / 4)/ (Rolling 3 month H sum)
Currently I have a measure that calculates the 3 month t sum and the 3 month H sum. Although I'm not sure how to pull this into the calculation they have in the above link...
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
140 | |
71 | |
64 | |
52 | |
50 |
User | Count |
---|---|
209 | |
92 | |
64 | |
59 | |
56 |