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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Riteshheda
Frequent Visitor

How to calculate values of last date of Customized Fiscal Year?

Hi All,

 

Please also help me in calcualting value pertains to last date of the Fiscal Year.

 

Fiscal Year Starts from April to March.

 

I am using below DAX to get the values as on 31-March, it is calculating the valuse of 31-December (as Jan-Dec Fiscal year by default).

 

CLOSINGBALANCEYEAR(Values,PREVIOUSYEAR([Date]))

 

Please suggest DAX to capture values of last date of Custom Fiscal Year not of what defined in Power BI.

 

Thanks.

3 REPLIES 3
amitchandak
Super User
Super User

@Riteshheda , for year ending 31-march

CLOSINGBALANCEYEAR([measure], dateadd('Date'[Date], -1, year), "3/31")

 

for year ending 31 dec

CLOSINGBALANCEYEAR([measure], dateadd('Date'[Date], -1, year), "12/31")

Hi Amit,

 

Thanks, but its only showing value of last date of corresponding Month.

 

Example, if I select period as March'21, so it is showing the value as on 31-March'2020

But, when I I select period as February'21, then it is showing the value as on 28-Feb'2020, which should not be the case, It should always show the value as on 31-March'2020 only.

 

I am trying to create a variance with the last year data (Closing balance numbers).

Like

March'21 vs. March'20

Feb'21 vs. March'20

Jan'21 vs. March'20

Dec.20 vs. March'20

 

Please help in the solution. Thanks for your time.

Hi @Riteshheda 

 

Sorry I don't understand your expected result. Can you share some sample data and expected result in table format? And what visuals are you using? When you select a period, do you want to calculate the total of the values in some periods?

 

Regards,
Community Support Team _ Jing

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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