Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I am attempting to model recovery of outstanding debts based on a number of factors:
I am able to generate the desired visual with my test record set which contains 100 records.
However when attempting to use my actual record set of > 100K records, the visual exceeds the available resources.
I would really appreciate some guidance on how to improve my DAX measures for faster performance.
It is my understanding that I cannot leverage calculated columns due to the use of what if parameters in the model.
Below are the DAX measures upon which the Cumulative Recovery by Date Worked measure in the line chart visual relies.
pbix link
Many thanks in advance
Jo.
Total Paid =
CALCULATE( SUM( DimWorkAttribute_A[Median Paid] ),
TREATAS( VALUES(FactWork[WorkTypeKey] ), DimWorkAttribute_A[WorkTypeKey]
)Recovery Cost Per Work Unit =
IF( ISBLANK( [Total Paid] ),
BLANK(),
[_Average Hours Effort Per Work Unit Value] * [_Recovery Cost Per Hr Value]
)Projected Recovery =
[Total Paid] - [Recovery Cost Per Work Unit]Total Hrs Effort Per Work Day =
VAR FTEHrsPerDay = 8
VAR AllocatedFTEResources = [_Number of Team Members Value]
VAR TotalEffortPerDay = FTEHrsPerDay * AllocatedFTEResources
RETURN
TotalEffortPerDayWork Item Number Of Work Days From Start =
VAR WorkEffort = [_Average Hours Effort Per Work Unit Value]
VAR HoursPerDay = [Total Hrs Effort Per Work Day]
VAR WorkDayNumber = ROUNDUP(
MAXX( DimWorkRank,
DIVIDE( DimWorkRank[WorkRank] * WorkEffort, HoursPerDay )
),
0
)
RETURN
WorkDayNumberCumulative Work Days =
VAR CurrentWorkDate = MAX( DimDate[Date] )
VAR DateFilter = FILTER (
ALLSELECTED( DimDate ),
DimDate[Date] <= CurrentWorkDate )
RETURN
CALCULATE( SUM( DimDate[IsWorkDay] ),
DateFilter
)Projected Date to Start Work Unit =
VAR ProjectDates = ALLSELECTED( DimDate )
VAR ProjectedWorkStartDate = CALCULATE(
MIN( DimDate[Date] ),
FILTER( ProjectDates,
[Cumulative Work Days] = [Work Item Number Of Work Days From Start]
)
)
RETURN
IF( ISBLANK( [Work Item Number Of Work Days From Start] ),
BLANK(),
ProjectedWorkStartDate
)Projected Recovery by Date Worked =
VAR WorkDate = SUMMARIZE( DimWorkRank, DimWorkRank[WorkRank], "ProjectedRecovery", [Projected Recovery], "WorkDate", [Projected Date to Start Work Unit] )
VAR DateTable = SUMMARIZE( DimDate, DimDate[Date], "WorkDate", MAX( DimDate[Date] ) )
VAR SummaryTable = NATURALINNERJOIN( DateTable, WorkDate )
RETURN
SUMX( SummaryTable, [ProjectedRecovery] )Cumulative Projected Recovery by Date Worked =
VAR CurrentDate = MAX( DimDate[Date] )
VAR DateFilter = FILTER( ALLSELECTED(DimDate), DimDate[Date] <= CurrentDate )
RETURN
IF( ISBLANK( [Projected Recovery by Date Worked] ),
BLANK(),
CALCULATE( [Projected Recovery by Date Worked], DateFilter )
)
Hi @jo_clifford ,
Your formulas are quite complicated, maybe you could try to combine some of them. Please take a look at below topics.
https://community.powerbi.com/t5/Desktop/Improve-Performance-Measure-DAX/m-p/1410068
https://community.powerbi.com/t5/Desktop/DAX-Measure-Reference-Performance/m-p/1368008
Best Regards,
Jay
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 71 | |
| 50 | |
| 46 | |
| 44 |