Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Arunraj89
Frequent Visitor

Visualización dinámica de tarjetas basadas en el valor superior 2

Hola, chicos

Me enfrento a un desafío al mostrar dos tarjetas visuales. Tengo cuatro columnas en mi conjunto de datos, es decir, División, categoría, fabricante y ventas.

La división y la categoría serán las segmentaciones en mi página. Tengo que mostrar el nombre de los dos principales fabricantes junto con la suma de ventas en la tarjeta Visual basado en la división o categoría elegida.

Un criterio más es que el cliente no está preocupado por el fabricante M1. por lo tanto, la clasificación tiene que ser calculada después de dejar fuera M1. Por favor, sugierame cómo hacerlo.

DivisiónCategoríaFabricanteVentas
D1c1M1$156,579
D1c1M2$170,540
D1c2M1$200,047
D1c2M2$339,770
D2c3M3$188,716
D2c3M4$197,672
D2c4M1$228,519
D2c4M2$139,350
D3c5M5$205,832
D3c5M3$305,470
D3c5M1$386,465
D3c5M2$144,321
D3c6M1$273,366
D3c6M4$218,405
D4c7M5$272,252
D5c8M3$231,676

Gracias por la ayuda @amitchandak @Greg_Deckler

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

@Arunraj89

Para excluir M1 del rango, utilice:

Manuf. Rank = 
VAR _RANK= RANKX(
             FILTER(ALLSELECTED('Fact Table'), 'Fact Table'[Manufacturer] <> "M1"), 
              [Sum Sales],,DESC,Dense)
RETURN
IF(ISINSCOPE('Fact Table'[Manufacturer]), _RANK)   // To Exclude from the "Total" row

Cree la matriz y excluya M1 en el filtro para Fabricante en el panel de filtro y establezca el rango en "menos de 3"

Result.JPG

He incluido el archivo PBIX para que lo revises.





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

3 REPLIES 3
v-xuding-msft
Community Support
Community Support

Hola @Arunraj89 ,

¿Lo has resuelto? En caso afirmativo, acepte la respuesta útil como solución. Otros se beneficiarán de este hilo. ¡Gracias! Si todavía necesita ayuda, no dude en preguntarnos.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PaulDBrown
Community Champion
Community Champion

@Arunraj89

Para excluir M1 del rango, utilice:

Manuf. Rank = 
VAR _RANK= RANKX(
             FILTER(ALLSELECTED('Fact Table'), 'Fact Table'[Manufacturer] <> "M1"), 
              [Sum Sales],,DESC,Dense)
RETURN
IF(ISINSCOPE('Fact Table'[Manufacturer]), _RANK)   // To Exclude from the "Total" row

Cree la matriz y excluya M1 en el filtro para Fabricante en el panel de filtro y establezca el rango en "menos de 3"

Result.JPG

He incluido el archivo PBIX para que lo revises.





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






amitchandak
Super User
Super User

@Arunraj89 , Según lo que tengo

puede crear un rango

Total de ventas: suma(Tabla[Ventas])
Rank á RankX(allselected(Table[Manufacturer]),[Total sales])

Puede anexar y mostrar Fabricante y ventas. o puede poner el fabricante en una tarjeta y las ventas en otra. A continuación, el filtro rango es 1 . Y usa una tarjeta de grupo para mostrarlos juntos

lo mismo para el rango 2

https://docs.microsoft.com/en-us/power-bi/desktop-grouping-visuals

https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-wi...

fabricante superior
maxx(filter(Values(Table[Manufacturer]),[Rank]-1),Table[Manufacturer])

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.