Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all, I'm hoping to get some help with structuring a line graph. I would like to have the graph's x axis show all of the current year, and the values associated up until this month, then another line showing the previous year's comparison, but keeping the x axis only for the current year. So it would look like the following:
I've been trying to acheive this with another graph but I can't seem to get it to work. Attached below are the measures i'm using and screenshot of current graph.
If you remove the year from your axis to just have months, your lines can indicate the year. Will that work for you?
Hi Syk. Unfortunatley I need it to look like the first graph i referenced. Month-Year for current year.
You need to use the calculate function to modify the filter context so you're previous year measure only looks at the previous year. I'm not sure what your data model looks like but if the data is correct in your current measure (just wrong visually), try to wrap the current measure in something like
calculate([Measure here],dateadd('DateTable'[Date],year,-1))
Hey Syk. I'm pretty sure it's doing that already. Referencing the PriorYear, and then reflected on the graph as 2022. My intention is to get those values to display on a 2023 timeline. Wonder if disconnected dates is what i'm supposed to look at?
Hi,
Share the download link of the PBI file.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |