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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.