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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ddtblar
Helper I
Helper I

KPI goal from total counted data last year

hi guys,

Need your help. I am lost.

I am new with KPI visual. So it gets me wrong when use it.

My KPI is about how many visitor (count of all row data) are coming in this year (based on the date-year slicer).

I want my goal in KPI is total count data from last year.

KPI goal from last year.PNG

 

I got the total visitor by using this formula as the measure : 

total = COUNT(data[vehicleno])

 

But i don't know the formula of the goal in KPI.

Any hints? 

any help would be great.

 

thanks

(sorry for the bad english)

1 ACCEPTED SOLUTION
Stachu
Community Champion
Community Champion

it should be something like this, but it requries an input of type date

Goal=
CALCULATE (
    [total],
    SAMEPERIODLASTYEAR ( 'Date'[Date] )
)


Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

View solution in original post

2 REPLIES 2
Stachu
Community Champion
Community Champion

it should be something like this, but it requries an input of type date

Goal=
CALCULATE (
    [total],
    SAMEPERIODLASTYEAR ( 'Date'[Date] )
)


Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

hi Statchu, yes it have date table for this data and it works!

Thanks for your time.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.