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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
RubenIdx
Helper I
Helper I

Filtrado de resultados de filas

He elaborado un modelo del que tengo una situación con la medida "% Var Total" esta medida tiene dos comportamientos uno en el nivel de detalle (producto) y el otro en los subtotales dependiendo de las agregaciones utilizadas.

Tomando como bueno el resultado del cálculo en mi matriz, se muestra que aunque tenían movimiento no corresponden al período filtrado, por ejemplo el producto "Item1097" tuvo movimientos en marzo de 2018 cuando estoy comparando 2020 vs 2019.

¿Puede decirme cuál es la manera correcta de filtrar este resultado?

Agradezco su orientación de antemano

Aquí está el enlace de descarga del modelo

https://drive.google.com/file/d/1uIlxPNASRaix02481wKpbFK3fwj9HsHy/view?usp=sharing

Preview Datamodel.png

La medida en cuestión:

% Var Total = Var TsVarTotal = DIVIDE(CALCULATE(Ventas[Varia Total]),CALCULATE([Venta Anterior]),0) 
VAr X = 1

 Var ProdVaria= CALCULATE([Varia Total Z])
Return 
SWITCH(TRUE(),
       HASONEVALUE(Productos[Producto]),ProdVaria,
       HASONEVALUE(Clases[Desc Clase]),TsVarTotal,             
       HASONEVALUE(DivRes[DivShr]),TsVarTotal, 
       HASONEVALUE(Ventas[SECTOR]),TsVarTotal,                                  
       HASONEVALUE(Clientes[Holding]),TsVarTotal, 
       HASONEVALUE(Vendedores[Name Vendedor]),TsVarTotal, 
       HASONEVALUE(Monedas[Currency]),TsVarTotal,
       BLANK()
)

1 ACCEPTED SOLUTION

Hola @RubenIdx ,

Si no desea ver datos en blanco y 0, puede configurar los campos en el panel de filtro.

3-1.PNG

Puede utilizar la función ISINSCOPE() para mantener el valor total orginal.

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

3 REPLIES 3
v-eachen-msft
Community Support
Community Support

Hola @RubenIdx ,

Si aún así sigues teniendo problemas, la página de ayuda de Aquí.

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

¡Hola!, gracias por la atención.

El resultado esperado es evitar u ocultar filas sin datos en los períodos seleccionados, por ejemplo, en la siguiente imagen las filas en el cuadrado rojo no tiene datos porque estos artículos tenían ventas a lo largo de 2018 o entre abril 2019 y diciembre 2019 y Estoy comparando jan-march 2019 vs jan-marc h 2020.

DatamodelOriginal.png

Y este es el resultado que me gustaría lograr.

DatamodelExpected.png

Gracias de antemano.

Hola @RubenIdx ,

Si no desea ver datos en blanco y 0, puede configurar los campos en el panel de filtro.

3-1.PNG

Puede utilizar la función ISINSCOPE() para mantener el valor total orginal.

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors