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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
coollehavre
Frequent Visitor

compare actual year vs precedent year with kpi

Hi i have three measures like that :

[Sum Sales]=SUM([Table Sales].Amount

[Sum Sales N-1] = CALCULATE([Sum Sales];SAMEPERIODLASTYEAR(Dates[Date]))

and a measure for goal sales : 

[Sum Sales Goal] = [Sum Sales N-1]*1.1

 

This measures works fine but i would like to show a KPI tha show the [Sum Sales] vs the [Sum Sales Goal]

So i added a KPI but when i select a year he shows nothing because theres no values in [Total Ventes Objectifs] (Sum Sales Goal)

Capture.PNG

 

How to have the sales for year selected and the sales for previous year when i select a year in my slicer ?

 

Thanks

 

1 REPLY 1
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @coollehavre

 

According to your description above, I have tested it with my data. It turns out that your solution should work as expected.

 

r3.PNG

 

Could share a sample pbix file which can reproduce the issue, so that we can further assist on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading. Smiley Happy

 

 

Regards

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.