Forum Discussion
Optimize complex dax measure
lbendlin parry2k Greg_Deckler rajendraongole1 amitchandak Ritaf1983
I have done whatever i could. I need your help to get this done.
I know i am asking your personal time, but its my humble request you to please check the file
https://drive.google.com/file/d/17KcLzaen5rJUB5T4iiBB0sbPi6xAF2c1/view?usp=drive_link
and help me out with possible changes that i could do for this.
Thanks,
Mohan V.
Still way too big. (619 MB)
Distill it down further.
- Mohan1282561 year agoHelper IV
lbendlini have reduced to 1.3 mb with only 4 Salesorder id's data.
Please check and let me know.- AlexisOlson1 year agoSuper User
I think you can simplify your measure like this.
Customer Reference (H) New = VAR _MaxDate = CALCULATE ( MAX ( 'Sales Orders Snapshots'[SnapDate] ), ALLSELECTED () ) VAR _Result = CALCULATE ( MAX ( 'Sales Orders Snapshots'[Customer Reference (H)] ), ALLEXCEPT ( 'Sales Orders Snapshots', 'Sales Orders Snapshots'[Sales Order ID (H)], 'Sales Orders Snapshots'[Product ID (L)], 'Sales Orders Snapshots'[Line Creation Sequence Number (L)] ), TREATAS ( { _MaxDate }, 'Sales Orders Snapshots'[SnapDate] ) ) RETURN _ResultThis produces only two queries in my testing and neither query had those annoying tuples.
- Mohan1282561 year agoHelper IV
Thanks for the suggestion AlexisOlson .
This works fine when i try it on the sample dataset which i have shared with you.
But the problem is all with when we have that whole table data and it takes almost 3min of time to render the visual.
This is where the users are all complaining about report to have better performance.
Please help. lbendlin AlexisOlson parry2k