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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Agustina1996
Frequent Visitor

Recuento acumulado entre dos fechas

Hola a todos
Presento el siguiente caso:
Como resuelvo el recuento acumulado de expedientes que se han iniciado y que se han resuelto? El inicio y la resolución de un expediente tienen fechas separadas en dos columnas distintas. Es necesario que el recuento acumulado de los expedientes iniciados este relacionado con las fechas de inicio y que el recuento acumulado de los tramites resueltos estén relacionados con su fecha de resolución.

Además, este conteo se debe realizar a partir del 01/01/2024 hasta la fecha maxima de inicio y de resolución.

 

He creado medidas para los recuentos simples (no acumulados) de la siguiente forma:

Recuento = COUNTROWS(Tabla_expedientes)

Recuentos_inicios = CALCULATE(
    [Recuento],
    USERELATIONSHIP(
        D_Calendario[Fecha],
        Tabla_expedientes[Fecha inicio]))
Recuentos_salidas = CALCULATE(
    [Recuento],
    USERELATIONSHIP(
            D_Calendario[Fecha],
            Tabla_expedientes[Fecha resolucion]),
    Tabla_expedientes[Estado]="Resuelto")
N expedienteFecha inicioEstadoFecha resolucion 
000111/12/2023Resuelto2/1/2024
00021/1/2024Resuelto2/2/2024
00035/1/2024Resuelto20/3/2024
00044/2/2024Resuelto16/4/2024
00054/2/2024Sin resolver 
00065/10/2024Resuelto6/1/2025

 

Necesito ayuda, gracias.

1 ACCEPTED SOLUTION
Rupak_bi
Super User
Super User

hi @Agustina1996 

hope this aligns your expectation. attaching PBIX

Rupak_bi_0-1768641209201.png

rupak. 



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

View solution in original post

7 REPLIES 7
v-echaithra
Community Support
Community Support

Hi @Agustina1996 ,

May I ask if you have resolved this issue? Please let us know if you have any further issues, we are happy to help.

Thank you.

v-echaithra
Community Support
Community Support

Hi @Agustina1996 ,

Thank you @Rupak_bi  for your inputs.

I just wanted to check if the issue has been resolved on your end, or if you require any further assistance. Please feel free to let us know, we’re happy to help!


Thank you 

Rupak_bi
Super User
Super User

hi @Agustina1996 

hope this aligns your expectation. attaching PBIX

Rupak_bi_0-1768641209201.png

rupak. 



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/
FreemanZ
Community Champion
Community Champion

hi @Agustina1996

 

not sure if i fully get you, please try like:

 

Count_Initiations =
VAR _maxdateini=MAXX(ALL(Cases_Table[Initiation Date]), Cases_Table[Initiation Date])
VAR _result = 
    COUNTROWS(
        FILTER(
            ALL(Cases_Table),
            Cases_Table[Initiation Date]>=DATE(2024,1,1)
                &&Cases_Table[Initiation Date] <= _maxdateini
    )
RETURN _result
 
Count_Resolutions =
VAR _maxdateres=MAXX(ALL(Cases_Table[Resolution Date]), Cases_Table[Resolution Date])
VAR _result = 
    COUNTROWS(
        FILTER(
            ALL(Cases_Table),
            Cases_Table[Resolution Date]>=DATE(2024,1,1)
                &&Cases_Table[Resolution Date] <=_maxdateres
    )
RETURN _result

hola @FreemanZ 
Con esa solución no me muestra el conteo acumulado a lo largo del tiempo

Agustina1996_0-1768400729767.png

 

FBergamaschi
Super User
Super User

Hi @Agustina1996,

your approach looks correct

 

Now you need cumulate, question is: do you need to cumulate through time? And in a YTD sense (so getting back to zero and restart cumulateing at each jan 1st?

 

Best

 

If this helped, please consider giving kudos and mark as a solution

@me in replies or I'll lose your thread

Want to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page

Consider voting this Power BI idea

Francesco Bergamaschi

MBA, M.Eng, M.Econ, Professor of BI

Hola FBergamaschi 
Necesito que se acumule a traves de tiempo, empezando el recuento el 01/01/2024, pero que no se reinicie nunca el conteo, si no que siga a medida que se actualizan los datos.

Saludos

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.