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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
HEW
Helper III
Helper III

Añadir filtro a la matriz para que solo se muestren valores negativos

Tengo una matriz donde el valor es una medida "Stock en ejecución":

Stock corriente:
CALCULAR (
SUM (MAT_STOCK[Frit anvendelig] )+ SUM('ME80FN'[Qty])- SUM('Orders'[Qty]);
FILTRO (
ALLSELECTED ('Fecha'[Fecha]);
Año ('Fecha'[Fecha]) - Año (MAX('Fecha'[Fecha]))
&& 'Fecha'[Fecha] <'MAX ('Fecha'[Fecha])
))

Tenemos bastantes artículos y es muy difícil encontrar los, donde el stock en ejecución es negativo (valores rojos).Matrix filter.PNG

¿Es posible añadir un filtro, por lo que solo se muestran los artículos con valores negativos?

Muchas gracias de antemano.

Br.

Helen

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@HEW ,

Debe modificar su patrón similar a continuación:

Running stock =
VAR Para =
    CALCULATE (
        SUM ( MAT_STOCK[Frit anvendelig] ) + SUM ( 'ME80FN'[Qty] )
            - SUM ( 'Orders'[Qty] );
        FILTER (
            ALLSELECTED ( 'Date'[Date] );
            YEAR ( 'Date'[Date] ) = YEAR ( MAX ( 'Date'[Date] ) )
                && 'Date'[Date] <= MAX ( 'Date'[Date] )
        )
    )
RETURN
    IF ( Para < 0; Para; BLANK () )

Equipo de Apoyo Comunitario _ Jimmy Tao

Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

View solution in original post

5 REPLIES 5
v-yuta-msft
Community Support
Community Support

@HEW ,

Debe modificar su patrón similar a continuación:

Running stock =
VAR Para =
    CALCULATE (
        SUM ( MAT_STOCK[Frit anvendelig] ) + SUM ( 'ME80FN'[Qty] )
            - SUM ( 'Orders'[Qty] );
        FILTER (
            ALLSELECTED ( 'Date'[Date] );
            YEAR ( 'Date'[Date] ) = YEAR ( MAX ( 'Date'[Date] ) )
                && 'Date'[Date] <= MAX ( 'Date'[Date] )
        )
    )
RETURN
    IF ( Para < 0; Para; BLANK () )

Equipo de Apoyo Comunitario _ Jimmy Tao

Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

amitchandak
Super User
Super User

Trate de tener un filtro de nivel visual en la medida

@amitchandak , lo he intentado, pero no puedo seleccionar a medida para el filtro.

Así es como quieres decir, ¿verdad?

Matrix filter visual.PNG

@HEW

Arrastre al filtro de nivel visual en el Panel de filtros

Screenshot 2020-03-25 16.30.49.png


Aprecia tus Felicitaciones.

@amitchandak También he probado esto. Cuando configuro el filtro en menor que 0, la matriz está vacía.

Sólo para la prueba, he seleccionado menos de 1 y esto funciona - sin embargo, todos los artículos con el valor 0 muestra 🙂 Si agrego otro criterio que el valor no debe ser 0, la matriz no tiene valores en absoluto....

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors