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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Chirag1981
Frequent Visitor

XIRR

Transaction Listing file contains Closing Balance and Monthly Balance for each calendar month. 

 

With Standard XIRR DAX I could calculate monthly XIRR but Cumulative is not correct as Opening and Closing balance of interim period should not be considered while calculating XIRR. For example, Opening Balance of 1st Jan (First Day of the year) and CLosing Balance of 31st March (If i am calculating for 31st March) should be considered and Opening Balance of 1st Feb and 1st March and Closing Balance of 1st Feb and 1st March should be ignored. 

 

So for cumulative i want to consider 1) Opening Balance of 1st Day of the Month, 2) Closing Balance of the Month for which Cumulative XIRR is calculated and 3) All transactions between and including this period but excluding Transaction Type Opening Balance and Closing Balance. 

 

Tranaction TypeTransaction DateXIRR Amount
Purchase01-Jan-20-3151290
Sell02-Jan-201575995
Purchase03-Jan-20-3467640
Sell04-Jan-201891704
Purchase05-Jan-20-3783948
Sell06-Jan-202207590
Purchase07-Jan-20-4100382
Sell08-Jan-202523632
Purchase09-Jan-20-4416944
Sell10-Jan-202839725
Purchase11-Jan-20-4733550
Sell12-Jan-203156140
Purchase13-Jan-20-5050384
Sell14-Jan-203472557
Purchase15-Jan-20-5367359
Sell16-Jan-203789264
Purchase17-Jan-20-5684670
Sell18-Jan-204106180
Purchase19-Jan-20-6002195
Sell20-Jan-204423328
Purchase21-Jan-20-6319960
Sell22-Jan-204740630
Purchase23-Jan-20-6637806
Sell24-Jan-205058096
Purchase25-Jan-20-6955872
Sell26-Jan-205375757
Purchase27-Jan-20-7274095
Sell28-Jan-205693580
Purchase29-Jan-20-7592520
Sell30-Jan-206011676
Closing Balance31-Jan-2031644600
Purchase31-Jan-20-7911150
Opening Balance01-Feb-20-31644600
Sell01-Feb-206329820
Purchase02-Feb-20-8229936
Sell03-Feb-206648201
Purchase04-Feb-20-8548902
Sell05-Feb-206966762
Purchase06-Feb-20-8868104
Sell07-Feb-207285549
Purchase08-Feb-20-9187461
Sell09-Feb-207604496
Purchase10-Feb-20-9507060
Sell11-Feb-207924050
Purchase12-Feb-20-9827434
Sell13-Feb-208243638
Purchase14-Feb-20-10147424
Sell15-Feb-208563104
Purchase16-Feb-20-10467534
Sell17-Feb-208882832
Purchase18-Feb-20-10787962
Sell19-Feb-209202773
Purchase20-Feb-20-11108160
Sell21-Feb-209522660
Purchase22-Feb-20-11428812
Sell23-Feb-209843058
Purchase24-Feb-20-11749794
Sell25-Feb-2010163328
Purchase26-Feb-20-12070586
Sell27-Feb-2010483044
Purchase28-Feb-20-12390768
Closing Balance29-Feb-2047663850
Sell29-Feb-2010803806
Opening Balance01-Mar-20-47663850
Purchase01-Mar-20-12712240
Sell02-Mar-2011124820
Purchase03-Mar-20-13034269
Sell04-Mar-2011448396
Purchase05-Mar-20-13358898
Sell06-Mar-2011770477
Purchase07-Mar-20-13681396
Sell08-Mar-2012092474
Purchase09-Mar-20-14004364
Sell10-Mar-2012414948
Purchase11-Mar-20-14327010
Sell12-Mar-2012735520
Purchase13-Mar-20-14646630
Sell14-Mar-2013056532
Purchase15-Mar-20-14969453
Sell16-Mar-2013378428
Purchase17-Mar-20-15291120
Sell18-Mar-2013697478
Purchase19-Mar-20-15596945
Sell20-Mar-2014006828
Purchase21-Mar-20-15919650
Sell22-Mar-2014330250
Purchase23-Mar-20-16229475
Sell24-Mar-2014630576
Purchase25-Mar-20-16542344
Sell26-Mar-2014959254
Purchase27-Mar-20-16917070
Sell28-Mar-2015323376
Purchase29-Mar-20-17241390
Sell30-Mar-2015651972
Closing Balance31-Mar-2089476520
Purchase31-Mar-20-17575745

 

 

1 REPLY 1
daxer-almighty
Solution Sage
Solution Sage

Hi @Chirag1981 

 

Would be much better if you gave a good, simple and to-the-point example of the calculation you want... With the description above, I'm a bit perplexed about how you want to calculate and what.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.