Top Clients =
Prod = [Top product]
Client = VALUES(Clients[CompanyName])
RANKX(ALL(Clients[CompanyName]); Total Sales];;DESC) <= 10); Orders[ProductName] = Prod)
I need to put in a table the companies thtat have bought my Top Product Prod, but the reuslt is not coherent.
what returnsWhat should return It ruturns 10 clients, when it should only return 6 and the #1 company should be Warp AG no Sunny Ski Store and I don't know how to solve this.
PSD: Top Product measure
Top Product = FIRSTNONBLANK(TOPN(1; ALL(Products[ProductName]); [ProdV];DESC); 1)
Actual = [ActualSales]
Previous = [PreviousSales]
IF(Actual > 0 && Previous = 0; CALCULATE([Total Sales]))
Actual measure is the actual year, Previous is the previous year and Total Sales is just what it says. ProdV measure's goal is to return me the total sales of products were not sold the previous year but sold in the actual year.