Forum Discussion
RANKX Measure issue
- 8 years ago
HI, I try to simplify this:
Top Clientesrl = VAR Prod = [Mas Vendido] RETURN CALCULATE ( [Ventas Total]; Ordenes[ProductName] = Prod )in the visual level filter
regards
Victor
It's does nothing :smileysad: here's a link where you can download the pbix document for better comprehension https://drive.google.com/open?id=1CHv9ejaaboVk7kS-7V0W61GPzb8uS7qs
Hi,
I checked another post as well where you have described the same/similar problem. Sorry but i cannot help much since the language there is no English. Also, the link that you have shared in your previous post does not work.
- amilkarigi8 years agoHelper I
- Vvelarde8 years agoCommunity Champion
hi, Edit this measure:
Mas Vendido = CALCULATE ( FIRSTNONBLANK ( TOPN ( 1; ALL ( Productos[ProductName] ); [ProdV]; DESC ); 1 ); ALL ( Clientes[CompanyName] ) )Regards
Victor
Lima -Peru
- amilkarigi8 years agoHelper I
Thanks Vvelarde but it doesn't work, because if I select 2013 it just give me 3 companies, when it should give me 6, in this order:
ResultExpected resultThe idea is that the result should be the top 10 companies that have bought my "mas vendido" (top product). In this example the Halter Dress has had 0 sales along with other products, but in 2013 was the top buyed product from this group with almost 91K sales.