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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Recuento distinto en la nueva columna mostrar resultado en blanco en la tabla

Hola a todos, tengo un recuento distinto "Nueva columna"

distinctcount__: CALCULATE(DISTINCTCOUNT(HistoricalBO[Index])). Debe contar todas las filas de índice que en 2020, pero muestra espacios en blanco (ver la imagen de abajo)
Capture.PNG
Traté de usar una nueva medida. Funcionó. Pero necesito ser una nueva columna para un cálculo posterior.
Gracias a todos.
1 ACCEPTED SOLUTION

Hola @freshpeper ,

Por favor, elimine esa columna calculada e intente volver a crear una nueva columna calculada con la siguiente fórmula:

distinctcount__ =
CALCULATE (
    DISTINCTCOUNT ( HistoricalBO[Index] ),
    FILTER (
        'HistoricalBO',
        'HistoricalBO'[Year] = EARLIER ( 'HistoricalBO'[Year] )
    )
)

distinctcount.JPG

Si el anterior todavía obtiene valores en blanco, proporcione algunos datos de muestra en su modelo (excluir datos confidenciales). Gracias.

Saludos

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
amitchandak
Super User
Super User

@freshpeper ,La información que ha proporcionado no está despejar el problema para mí. Por favor, puede explicar con un ejemplo.

Apreciamos tus Felicitaciones.

camargos88
Community Champion
Community Champion

@freshpeper ,

¿Puede proporcionar más ejemplos de su conjunto de datos?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Anonymous
Not applicable

@camargos88
Tres columnas. año, elemento, índice (como referencia de fila única)

Quiero conseguir cuántos artículos en un año. así que conté el índice en una nueva columna.

distinctcount__: CALCULATE(DISTINCTCOUNT(HistoricalBO[Index]))
Year Distinctcount
2020 _nothing show_

@freshpeper ,

Tal vez sea necesario echar un vistazo a su archivo pbix para comprobar el modelado, su medida debería funcionar.



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Anonymous
Not applicable

@camargos88 solo una tabla, 3 columnas, no se aplica ningún modelo de datos. no se aplica ningún filtro en la página.

Capture.PNG

Hola @freshpeper ,

Por favor, elimine esa columna calculada e intente volver a crear una nueva columna calculada con la siguiente fórmula:

distinctcount__ =
CALCULATE (
    DISTINCTCOUNT ( HistoricalBO[Index] ),
    FILTER (
        'HistoricalBO',
        'HistoricalBO'[Year] = EARLIER ( 'HistoricalBO'[Year] )
    )
)

distinctcount.JPG

Si el anterior todavía obtiene valores en blanco, proporcione algunos datos de muestra en su modelo (excluir datos confidenciales). Gracias.

Saludos

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@freshpeper ,

¿Puedes compartir este pbix ?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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