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

Introduzca un índice único para cada día

Hola, chicos

Tengo la siguiente tabla, datetime y un valor, esta foto muestra sólo ne día 7 de agosto sin embargo tiene mucho más,

edgarcalgary_0-1597346855601.png

Me gustaría obtener un conteo cummulative de cada día único en la tabla, por ejemplo el 7 de agosto obtiene 1, sin preocuparse por el tiempo, entonces el 8 de agosto el 2 y así sucesivamente, ¿cómo puedo lograr esto?

Muchas gracias.

2 ACCEPTED SOLUTIONS

Debe dividir la fecha y hora en 2 columnas durante la carga de datos. También debe obtener una tabla de calendario para informes más sólidos. https://exceleratorbi.com.au/power-pivot-calendar-tables/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

v-shex-msft
Community Support
Community Support

hola @edgarcalgary,

Puede intentar utilizar la siguiente fórmula de cálculo de columna si cumple con sus requisitos:

Index=
COUNTROWS (
    SUMMARIZE (
        FILTER (
            ADDCOLUMNS ( ALLSELECTED ( Table ), "Date", DATEVALUE ( Table[EndDateTime] ) ),
            [Date] <= EARLIER ( Table[EndDateTime] )
        ),
        [Date]
    )
)

saludos

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

hola @edgarcalgary,

Puede intentar utilizar la siguiente fórmula de cálculo de columna si cumple con sus requisitos:

Index=
COUNTROWS (
    SUMMARIZE (
        FILTER (
            ADDCOLUMNS ( ALLSELECTED ( Table ), "Date", DATEVALUE ( Table[EndDateTime] ) ),
            [Date] <= EARLIER ( Table[EndDateTime] )
        ),
        [Date]
    )
)

saludos

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
pranit828
Community Champion
Community Champion

Hola @edgarcalgary

Yo usaría el DATEDIFF('table'[EndDateTime],today(),DAY) y crear una columna, suena bien.

¿Resolví tu problema? ¡Marca mi puesto como una solución! Apreciamos sus Felicitaciones, Pulse el botón pulgares hacia arriba !!

saludos
Pranit





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

Debe dividir la fecha y hora en 2 columnas durante la carga de datos. También debe obtener una tabla de calendario para informes más sólidos. https://exceleratorbi.com.au/power-pivot-calendar-tables/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

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.