Forum Discussion
Hint about DAX calculation
- 5 years ago
Hi laciodrom_80 ,
Would you please use the following measure ?
Measure = SUMX(ADDCOLUMNS(SUMMARIZE('Table','Table'[CUSTOMER],"maxrevision",MAX('Table'[REVISION])),"_price",CALCULATE(MAX('Table'[Price]))),[_price])If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
laciodrom_80 , Try like
sumx(values(Table[CUSTOMER]) ,calculate(max(Table[price])))
or
sumx(Summarize(Table,Table[CUSTOMER],"_1" ,calculate(max(Table[price]))),[_1])
or
sumx(values(Table[CUSTOMER]) ,(max(Table[price])))
amitchandak thanks, but I've modified the post in the meantime, it's a bit different
- amitchandak5 years ago
Super User
laciodrom_80 , Try like
sumx(values(Table[CUSTOMER]) ,lastnonblankvalue(table[revision ],max(Table[price])))
In visual take max or last of revision, if needed
- v-deddai1-msft5 years ago
Community Support
Hi laciodrom_80 ,
Would you please use the following measure ?
Measure = SUMX(ADDCOLUMNS(SUMMARIZE('Table','Table'[CUSTOMER],"maxrevision",MAX('Table'[REVISION])),"_price",CALCULATE(MAX('Table'[Price]))),[_price])If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai