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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors