March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
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!
Solved! Go to 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,
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,
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
165 | |
116 | |
63 | |
57 | |
50 |