Forum Discussion
Mohan128256
1 year agoHelper IV
Optimize complex dax measure
Hello All, After going through all the possible ways of optimization of a measure which i have written, I am reaching out to you community members to help me out. below is dax query which i have...
Mohan128256
1 year agoHelper IV
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.
- lbendlin1 year agoSuper User
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.