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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
StidifordN
Helper III
Helper III

Calculated Graph line +5% from existing value

Morning all, 

 

Looking to have a 'Target' line included, that is a calculated value 5% higher than the 'Previous Year' figures.  What is the best way to achieve this?

The spend figure is a cumulative figure - formula below.

Total Spend AU Cumulative = 
CALCULATE(
SUM(APAll[NET_AMOUNT_AU]),
FILTER(ALLSELECTED(APAll[ReportingMonth]),
ISONORAFTER(APAll[ReportingMonth],MAX(APAll[ReportingMonth]),DESC)))

 

The legend formula is below

CY Graph Format = 
Switch(True(),
YEAR(APAll[PTRN_POSTED])=YEAR(TODAY()),"Current Year",
YEAR(APAll[PTRN_POSTED])=YEAR(TODAY())-1,"Previous Year","")

 

GraphImage1.png

 

Cheers 🙂

1 REPLY 1
amitchandak
Super User
Super User

@StidifordN , Create measure for this year vs last year as with legend you will not be able add thrid line

 

You can have a measure like [previous year] *1.05

 

if you have for previous yeat with help from date table, you can get

 

CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5b...
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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