cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Regular Visitor

## Previous Fiscal Year value not calculated correctly

I am trying to get premium value for previous fiscal year and consequently Growth over fiscal year. However, none of the below DAX query giving me correct result.

---------------------DAX to get Premium value for last fiscal year with SAMEPERIODLASTYEAR function--------------------------

VAR LY = CALCULATE(
SAMEPERIODLASTYEAR('Fiscal Year Calander'[Date].[Date])
)
RETURN
LY
-------------------------------DAX to get Premium value for last fiscal year with DATEADD function----------------------------------
VAR LY = CALCULATE(
)
RETURN
LY
Though the Fiscal Year Calender is related M to M, for calculation, I am filtering out the fiscal year calender so as to give 1 to M relation.

For both the above DAX, The result is good if report is viewd against Year in one column

But the DAX fails to give correct result when viewed against Fiscal year, which is a column of fiscal year calender table.

Here the Current FY Premium and Last FY Premium is same, which is not correct.

Can anyone help with where I am getting wrong.

1 ACCEPTED SOLUTION
Community Support

Hi @shailendransit,

I think the time intelligence function may not suitable to work with fiscal date.
Perhaps you can try to use date function to get the current date based on current fiscal date, then you can use this as condition to calculate with previous range records.

Time Intelligence "The Hard Way" (TITHW)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Community Support

Hi @shailendransit,

I think the time intelligence function may not suitable to work with fiscal date.
Perhaps you can try to use date function to get the current date based on current fiscal date, then you can use this as condition to calculate with previous range records.

Time Intelligence "The Hard Way" (TITHW)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Announcements

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

#### Power BI Monthly Update - May 2024

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

#### Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors