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!View all the Fabric Data Days sessions on demand. View schedule
Hola a todos,
Tengo 2 tablas como esta,
Quiero enumerar el recuento distinto de ID, cuando su, Col-A = 1 y (los valores de Corsponding Col-B en otra tabla no son H),
Aquí, en este ejemplo, quiero contar 103, 104, 106 y 104 y devolver 4 como valor (rechazando 100, 101, 105 como 500 y 508 tiene valor H)
Probablemente comenzaría con una columna calculada en la primera tabla:
ColLvlLookup = CALCULATE ( MAX(Table2[lvl]), FILTER ( Table2, Table1[col-B] = Table2[Col-B] ) )
Y luego puedes agregar una medida:
Measure =
VAR _helpTable =
SUMMARIZE (
FILTER ( Table1, Table1[ColLvlLookup] = "H" ),
Table1[ID]
)
RETURN
CALCULATE ( DISTINCTCOUNT ( Table1[ID] ), Table1[col-A] = 1, NOT Table1[ID] IN (_helpTable) )
¡Espero que esto ayude! 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!