This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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 April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.