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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Calculate IRR according operationdate but display according endofquater

Hello, I need your help please. I have difficulties in calculating the irr and to display in matrix.
I want to calculate the IRR according to the  operation date and display it in a matrix according end of quarter of operation date.
As below :

ndris_0-1684766591516.png


NB: when I select in my slicer 30 /06/2022 as reportingDate(endofquarter) I want to have the irr of the other end of past quarter of the same year;

I have 2 tables :

cashflow

operationDate

paid

proceed

nav

irrelement

reportingDate

date

reportingate Q(endofquarter)

 

There are no link between both tables.

 

measures in cashflows

IRRelement = 

CALCULATE(
- SUM(CashFlows[Paid]) + SUM(CashFlows[Proceed]) + CashFlows[NAV Q]
, FILTER(
CashFlows
, CashFlows[OperationDate] <= SELECTEDVALUE(ReportingDate[ReportingDate])
)
)
 
My IRR measeure is : 
 
IRRTEST =

VAR Summary =
SUMMARIZE ( 'CashFlows'
,'CashFlows'[OperationDate]
, "@Valeurs_cashflow"
, [IRRelement]
)

VAR FilterZeros =
FILTER ( Summary
, ABS([@Valeurs_cashflow]) > 5
&& [@Valeurs_cashflow] <> BLANK() && 'CashFlows'[OperationDate]<= [DateTest]
)
RETURN

IFERROR(
IF( OR( CashFlows[IRRelement]= BLANK(), CashFlows[IRRelement]<=0 )
,"N/A"
,XIRR (
FilterZeros
, [@Valeurs_cashflow]
,'CashFlows'[OperationDate])
)
,0)

 

 

If you need more information don't hesitate please . 

kinds

 

0 REPLIES 0

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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