Forum Discussion
amilkarigi
8 years agoHelper I
RANKX Measure issue
The problem is that I have a top 10 measure with rankx: Top Clientes =
VAR
Prod = [Mas Vendido]
VAR
Cliente = VALUES(Clientes[CompanyName])
RETURN
CALCULATE([Ventas Total];...
- 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
Ashish_Mathur
8 years agoSuper User
Hi,
My suggestion is to create a seperate RANK measure
=RANKX(ALL(Clientes[CompanyName]); [Ventas Total];;DESC)
Now in the first visual, drag this measure to the Visual Level filters and apply a criteria there of <=10.
amilkarigi
8 years agoHelper I
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
- Ashish_Mathur8 years agoSuper User
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