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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Alejandro_bi
Frequent Visitor

KPI goal last period

How to create a KPI where the objective is the income of the previous year or the previous month or last period? Using Dax

 

Thanks!

1 ACCEPTED SOLUTION

@Anonymous

 

If you want to calculate the total of Previous Month or Previous Year, you can directly use PREVIOUSMONTH() or PREVIOUSYEAR() function, and directly use the Date column instead of [column].[Date]. 

 

If you want to specify multiple periods date range, you can also use DATESINPERIOD().

 

Regards, 

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Yes, I create this measure; 

Goal Honorario Total = CALCULATE(SUM(Actividad[Honorario Total]);SAMEPERIODLASTYEAR(Actividad[Fecha Actuacion].[Date]))

 

But the objective always appears as empty or infinity.

@Anonymous

 

If you want to calculate the total of Previous Month or Previous Year, you can directly use PREVIOUSMONTH() or PREVIOUSYEAR() function, and directly use the Date column instead of [column].[Date]. 

 

If you want to specify multiple periods date range, you can also use DATESINPERIOD().

 

Regards, 

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.