Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
¿Cómo puedo formular una expresión DAX que filtre una tabla en función de las condiciones de dos columnas diferentes y, a continuación, cuente las filas restantes en Power BI?
medida = CALCULAR (
COUNTROWS( df )
,df[column1] IN { "col1", "col2", "col2" }
&&df[columna2] <> 0
)
Pruebe lo siguiente:
measure = CALCULATE (
COUNTROWS( df )
,df[column1] IN { "col1", "col2", "col2" }
&& VALUE(df[column2]) <> 0
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.