Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
newhopepdx
Helper III
Helper III

Line Chart - limit Previous Yr values to only those months displayed for current year

On a line chart with Current Yr, Cur Yr Budget & Previous Yr 

I want the budget and previous year lines to stop with that last month displayed for current year. The x-axis data marker are Year-Month.

1 ACCEPTED SOLUTION
adudani
Super User
Super User

hi @newhopepdx ,

 

refer to this video below:

Calculate Growth over Last Year by Fiscal Year in Power BI

 

Around 12:40 to 13:30 he adds a variable "check" which enables the cut off at the most latest date. 
For your scenario, extend the check condition to CY && LY  && Budget in case it's all used in the same visual and require the same cut off as TY.

 

Hope this helps.

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

View solution in original post

2 REPLIES 2
newhopepdx
Helper III
Helper III

Thanks!

The author of Your Own KPI just did a really slick video on this same concept, but added some other really cool features.   https://www.youtube.com/watch?v=bzeNQgjrOUM&t=11s

adudani
Super User
Super User

hi @newhopepdx ,

 

refer to this video below:

Calculate Growth over Last Year by Fiscal Year in Power BI

 

Around 12:40 to 13:30 he adds a variable "check" which enables the cut off at the most latest date. 
For your scenario, extend the check condition to CY && LY  && Budget in case it's all used in the same visual and require the same cut off as TY.

 

Hope this helps.

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors