This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi All,
i have a below DAX where i need to calculate Total returns for all products for a selected client Since Inception(Start Date) to selected report date. i am using the below DAX. This works well but if i select recent dates it startes givinf memore exceed issue . Is there a way to optimize this DAX by further filters like (applying extra filter for selected client ) or any other approach for calculated table to be used? please help . Thanks
SinceInception =
VAR reportSelectedDate = MAX('Date Table'[LastDayOfMonth])
VAR yearCount=DATEDIFF([ProductStartDate],_selectedDate, DAY)/365
VAR _NewTotal =
CALCULATE(100 * (power( EXP ( ( SUM ( Client_Returns_Data[Returns] ) ) ),(1/yearCount))- 1),
CALCULATETABLE(
FILTER(VALUES('Date Table'[_Date]),
'Date Table'[_Date] >= [ProductStartDate] && 'Date Table'[_Date] <= _selectedDate
), ALL('Date Table')
))
Return
_NewTotal
@amitchandak , Thanks for reply.. i implemented the updated DAX u provided and seems to be working with initial testing. not yet tested completly.
Thanks again.. Can u please help understand .. how the updated DAX helped in improvement?
@ak77 , Try like
SinceInception =
VAR reportSelectedDate = MAX('Date Table'[LastDayOfMonth])
VAR yearCount=DATEDIFF([ProductStartDate],_selectedDate, DAY)/365
VAR _NewTotal =
CALCULATE(100 * (power( EXP ( ( SUM ( Client_Returns_Data[Returns] ) ) ),(1/yearCount))- 1),
FILTER(ALL('Date Table'),
'Date Table'[_Date] >= [ProductStartDate] && 'Date Table'[_Date] <= _selectedDate
)
)
Return
_NewTotal
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 62 | |
| 47 | |
| 27 | |
| 23 | |
| 19 |