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
UsePowerBI
Post Prodigy
Post Prodigy

Cuente las filas si Col1 Y Col2 están en blanco

Hola

Tengo esta fórmula:

IF(SELECTEDVALUE(CurrentTable[Col1])-"1",CALCULATE(AnotherTable[Col2]),FILTER(AnotherTable,AnotherTable[Col3]-SELECTEDVALUE(CurrentTable[Col1])),AnotherTable[Col2]<>"")
¿Cómo puedo cound las filas que tienen vacío o en blanco en todas las cosas AnotherTable[Col2], AnotherTable[Col5], AnotherTable[Col7] mientras que las otras criteras todavía se aplican, es decir AnotherTable[Col3]-SELECTEDVALUE(CurrentTable[Col1]) ?
¡Gracias!
4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

Sírvanse explicar de nuevo el problema y proporcionar algunos datos de muestra y los resultados previstos.

v-alq-msft
Community Support
Community Support

Hola, @UsePowerBI

¿Podría mostrarnos algunos datos de muestra y el resultado esperado con One Drive para empresas? Enmascarar los datos confidenciales antes de cargarlos. Gracias.

Saludos

Allan

v-alq-msft
Community Support
Community Support

Hola, @UsePowerBI

Si usted toma la respuesta de alguien, por favor márquela como la solución para ayudar a los otros miembros que tienen los mismos problemas a encontrarla más rápidamente. Si no, avísame y trataré de ayudarte más. Gracias.

Saludos

Allan

v-alq-msft
Community Support
Community Support

Hola, @UsePowerBI

Según su descripción, creé datos para reproducir su escenario.

CurrentTable:

a1.PNG

AnotherTable:

a2.PNG

Puede crear una medida como se indica a continuación.

Result = 
var _col1 = SELECTEDVALUE(CurrentTable[Col1])
return
IF(
    _col1 = "1",
    CALCULATE(
        COUNT(AnotherTable[Col2]),
        FILTER(
            ALL(AnotherTable),
            AND(
            AnotherTable[Col3]=_col1,
            AnotherTable[Col2]=BLANK()
            )
        )
    )
)

Resultado:

a3.PNG

Saludos

Allan

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

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.