Forum Discussion
mtb1973
4 years agoFrequent Visitor
Dax Query Slow - Need ideas to Optimize
Hello, I am afraid I can't add a whole lot in the way of PBIX/Sample Data due to the fact that I love my job and don't want to get fired. With that being said, does anyone have a potential better w...
AlexisOlson
Super User
4 years agoIs it necessary to iterate through each date independently for [ShipDaysBudgetAllocation] to work properly? How is that measure defined?
Unrelatedly, try this refactoring:
VAR SelectedDays =
CALCULATETABLE (
VALUES ( Dim_Date[FullDate] ),
ALLSELECTED ( Dim_Date ),
Dim_Date[FullDate] <= MAX ( Dim_Date[FullDate] )
)
RETURN
SUMX ( SelectedDays, [ShipDaysBudgetAllocation] )