Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Im using directquery and I want a column chart that always shows the last 12 months.
I tryied to use something with DATEDIFF, MAX(DATE),... But with no success.
I have two tables, one is my Date table and the other with my data. And they are joined with date column.
I was looking for something similar -- a chart that showed the last 12 months of data (NOT necessarily 12 months from today). First, I created a measure that finds all the distinct dates:
One way you could filter the data in the visual to the last 12 months..
1. Click the bar chart visual
2. In the Visualizations pane, under Filters click the date field
3. Change the Filter Type to Relative date filtering
4. Change to "is in the last 12 months" as shown in screenshot below
💗this solution.
Thank you for this info. Is there a way to move January 2023 column AFTER December 2022?
You may need extra columns in your Date Table for the sorting.
Make a "Month sorting order", then English Month Column sorted by that Column.
I copied the code form some youtube video.
@JayHerrera its not work for me.
Its fixed to that range of dates. I want something more dynamic like, filter a Month and its return the last 12 months of that filtered month.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 55 | |
| 35 | |
| 31 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 75 | |
| 72 | |
| 38 | |
| 35 | |
| 25 |