Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
jclorenzo
Frequent Visitor

RESULTADO DE COUNTA Mientras se muestran los datos originales.

Nos gustaría mostrar el recuento total en una cuadrícula de tabla del resultado COUNTA (Cuenta el número de registros que no están vacíos). Pero mantenga el texto original.

Similar a la siguiente captura de pantalla.

jclorenzo_0-1605293103814.png

Power BI muestra el recuento en la parte inferior, pero cambia los valores de detalle al recuento individual. En este caso 1.

jclorenzo_2-1605293655388.png

Cualquier sugerencia sería muy apreciada !!!

1 ACCEPTED SOLUTION

@jclorenzo -

ConcatX =
VAR __temp =
    CALCULATETABLE ( 'Table (2)', 'Table (2)'[Column2] <> BLANK () )
RETURN
    IF (
        HASONEVALUE ( 'Table (2)'[Column1] ),
        CONCATENATEX ( 'Table (2)', 'Table (2)'[Column2], " | " ),
        COUNTROWS ( __temp )
    )

image.png






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



View solution in original post

4 REPLIES 4
ChrisMendoza
Resident Rockstar
Resident Rockstar

@jclorenzo -

Measure = 
VAR __temp = 
CALCULATETABLE(
    'Table',
    'Table'[Priority] <> BLANK()
)

RETURN
    COUNTROWS(__temp)

image.png

image.png






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



Hola Chris, gracias por su sugerencia, pero necesitamos el valor de recuento en la parte inferior de la columna HECHO. Idéntico a cómo se muestra Excel. ¿Alguna sugerencia?

@jclorenzo -

ConcatX =
VAR __temp =
    CALCULATETABLE ( 'Table (2)', 'Table (2)'[Column2] <> BLANK () )
RETURN
    IF (
        HASONEVALUE ( 'Table (2)'[Column1] ),
        CONCATENATEX ( 'Table (2)', 'Table (2)'[Column2], " | " ),
        COUNTROWS ( __temp )
    )

image.png






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



Excelente; Funcionó perfectamente. ¡¡¡Gracias!!!

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors