This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi,
I was wondering if anyone would be able to help, I have the below 2 graphs which show the last 12 months from the date selected or when the data goes to. E.g. Data is in up until June 2023 so will show June 2023 - July 2022. A rolling 12 months.
I also have another graph which is a 'comparison year' showing the same. For example, you select 2020 and it shows June 2020 - July 2019
Is there a way I can get this to show on one graph but keep it being 'July' at the start like the graphs are showing? I can't add a year filter as it causes the data to be split. Has anyone got any suggestions?
You can create 2 measures for this and add them both on the graph.
First measure would be..
PAX = sum(table[pax]) //or whatever your calculation is
Then, to get the previous year, we would reference the above measure.
PAX Previous Year = CALCULATE([PAX],dateadd(datetable[date],-1,year))
If you can go through the calculation of how you get your PAX line, we can get you an actual dax expression to calculate it.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 32 | |
| 26 | |
| 24 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 50 | |
| 31 | |
| 25 | |
| 24 |