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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Power BI Script

Please assist with a script to calculate depreciation using Power BI DAX. For example, I have an asset with a cost value of $10000, salvage value $1000, Acquisition date 10.09.2021. I also want to consider if l was auditing the current financial year starting 10.07.2021, how can l calculate depreciation for those 2 months within the financial year(12months).

4 REPLIES 4
Anonymous
Not applicable

Serial NumberAsset KeyDEPRN_START_DATELIFE_IN_MONTHSADJUSTED_COSTCOSTORIGINAL_COSTSALVAGE_VALUE Years to date31-Mar-21  Depreciation Calculation
 NONE31/10/202036038270843.23191354216.219709648915308337338270843                5.03      354.97  1,467,103.87 ((ORIGINAL_COST-SALVAGE VALUE)/NO.OF MONTHS)*12

Hi,

Your data does not paste properly in MS Excel.  Please share the download link of your MS Excel file with a few line items (rather than just one).  Also, how can the FY start from 10.07.2021?  Please share the starting month of the FY.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

My expected output is the formula written there

Ashish_Mathur
Super User
Super User

Hi,

Share a few rows of data (in a format that can be pasted in an MS Excel file) and shwo the expected result. 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.