Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hola a todos,
Tengo un problema y no sé cómo proceder.
Tengo varias mesas. Para cada tabla (tabla 1 y 2) me gustaría contar el número de valores distintos en la columna "Valor":
Tabla1 --> Número de valores distintos = 2
IDENTIFICACIÓN | Valor |
1 | Xyz |
5 | Xyz |
12 | abecedario |
Tabla 2 --> Número de valores distintos = 3
IDENTIFICACIÓN | Valor |
2 | abecedario |
4 | Def |
10 | grabar |
En base a esto, me gustaría crear una nueva tabla que contenga una lista del número de los valores distintos para cada tabla:
Nueva tabla
Mesa | Número de valores distintos |
Cuadro 1 | 2 |
Cuadro 2 | 3 |
Espero que alguien pueda ayudar. ¡Gracias de antemano!
Solved! Go to Solution.
Hay @Starter
Pruebe este código para crear una nueva tabla:
Count Table =
UNION (
SUMMARIZE (
'Table 1',
"Table", "Table 1",
"Number of distinct values", DISTINCTCOUNT ( 'Table 1'[Value] )
),
SUMMARIZE (
'Table 2',
"Table", "Table 2",
"Number of distinct values", DISTINCTCOUNT ( 'Table 2'[Value] )
)
)
Salida:
Si este post Ayuda, a continuación, por favor considere Acéptalo como la soluciónpara ayudar a los otros miembros a encontrarlo más rápidamente.
Aprecia tus felicitaciones !!
Hay @Starter
Pruebe este código para crear una nueva tabla:
Count Table =
UNION (
SUMMARIZE (
'Table 1',
"Table", "Table 1",
"Number of distinct values", DISTINCTCOUNT ( 'Table 1'[Value] )
),
SUMMARIZE (
'Table 2',
"Table", "Table 2",
"Number of distinct values", DISTINCTCOUNT ( 'Table 2'[Value] )
)
)
Salida:
Si este post Ayuda, a continuación, por favor considere Acéptalo como la soluciónpara ayudar a los otros miembros a encontrarlo más rápidamente.
Aprecia tus felicitaciones !!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.