Your example works perfectly, however i am having to use MSSQL Tabular for this solution (2016 RTM), I upgraded the Service Pack to SP2 and it was still failing with the message “MAXX takes an arguement that evaluates to numbers or dates and cannot work with values of type string”. I tried on an instance of SQL 2017 Tabular and it works! So now i just need to deal with that!
Thanks again.
Top Sold Product =
var t =
MAXX(
TOPN( 1,
SUMMARIZE(
Product,
Product[ProdDescr],
"MostSold", [Sales Amount]),
[MostSold] ),
Product[ProdDescr])
RETURN
IF(ISBLANK([Sales Amount]), BLANK(), t)