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

Join 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.

Reply
Syndicate_Admin
Administrator
Administrator

Agregar columna de recuento

Necesito crear una nueva columna donde pueda obtener el Recuento de reservationId por clientId.
Tengo reservationId y clientId, reservationId es distinto.

patilmeet7_0-1634179394080.png

Creo una tabla para obtener el recuento de reservationId por ClientId a continuación:

patilmeet7_1-1634179557056.png

Del mismo modo necesito ese conteo en columna.



1 ACCEPTED SOLUTION

Hay @patilmeet7

Debería ser

T.Count = COUNTX (FILTER ( 'reservas públicas', [clientId] = ANTERIOR ( [clientId] ) ), [reservationId])

Cuida los pares de paréntesis. Un ")" en su fórmula DAX simplemente no está en la posición correcta.

Saludos
Equipo de soporte de la comunidad _ Jing

View solution in original post

5 REPLIES 5
Syndicate_Admin
Administrator
Administrator

@patilmeet7 , una nueva columna

countx(filter(Table, [clientid] =earlier([clientid]) ,[reservationid])

Está dando parámetro inesperado.

patilmeet7_1-1634184041610.png

Además, estoy tratando de obtener la columna a través de Power Query Editor. @amitchandak

Hay @patilmeet7

Debería ser

T.Count = COUNTX (FILTER ( 'reservas públicas', [clientId] = ANTERIOR ( [clientId] ) ), [reservationId])

Cuida los pares de paréntesis. Un ")" en su fórmula DAX simplemente no está en la posición correcta.

Saludos
Equipo de soporte de la comunidad _ Jing

@patilmeet7 , esto fue dax, uno correcto

countx(filter(Table, [clientid] =earlier([clientid])) ,[reservationid])

Para Power Query, cree una nueva tabla que se agrume por identificador de cliente y combíne con esta tabla

@amitchandak Pude usar el grupo y lograr lo que necesitaba hacer.

Mientras que para el DAX que proporcionó, todavía muestra el parámetro inesperado, por lo que no funciona aquí.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors