cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
ndris
Helper I
Helper I

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors