Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello,
We are calculating XIRR in PBI. There are several associated measures.
Some of the measures run slow - example of one below. Any idea how to speed up or why this is occurring? Relatively speaking, there are not many records in the table - about 500k. And we use DirectQuery.
Slow running measure is:
XIRR_BeginRMV_Date_IsBefore = VAR StartDate = [XIRR_BeginDate]
VAR HowMany = CALCULATE(COUNTX(XIRR_Lookup,XIRR_Lookup[TransactionDate]),XIRR_Lookup[MappingName]="Reported Market Value", XIRR_Lookup[TransactionDate]<StartDate)
RETURN IF(COALESCE(HowMany,0)=0,"AFTER","BEFORE")
And mainly the slow part is VAR HowMany.
Thanks,
Dan
Solved! Go to Solution.
Hi @dancarr22
please try
XIRR_BeginRMV_Date_IsBefore =
VAR StartDate = [XIRR_BeginDate]
VAR Check =
ISEMPTY (
FILTER (
XIRR_Lookup,
XIRR_Lookup[MappingName] = "Reported Market Value"
&& XIRR_Lookup[TransactionDate] < StartDate
)
)
RETURN
IF ( Check, "AFTER", "BEFORE" )
Thanks so much @tamerj1 - that worked!
I actually have one (maybe 2) new related questions which I will post separately.
Sincerely appreciate your assistance!
Dan
Hi @dancarr22
please try
XIRR_BeginRMV_Date_IsBefore =
VAR StartDate = [XIRR_BeginDate]
VAR Check =
ISEMPTY (
FILTER (
XIRR_Lookup,
XIRR_Lookup[MappingName] = "Reported Market Value"
&& XIRR_Lookup[TransactionDate] < StartDate
)
)
RETURN
IF ( Check, "AFTER", "BEFORE" )
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |