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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Syndicate_Admin
Administrator
Administrator

DESAFÍO DAX: recuento de la ocurrencia del registro

Hola, chicos

Estoy luchando con un pedazo de DAX.

Tengo 2 mesas. [empleado] y [control de acceso]. relacionado en empID

Necesito una medida tht devuelve cuántas veces ocurre un individuo en la tabla [accescontrol] en un período determinado. returnig 0 si no lo hacen.

Eg

empleado

id de empleadoNombre
1Jorge
2Lovemore
3Sydey
4Montgomery
5Alecia
6Nadia
7Ramu
8Marcar
9Sean
10Travor

control de acceso

EmpIDFecha del evento
32021-12-22
12022-01-01
52022-01-02
62022-01-03
82022-01-04
92022-01-05
102022-01-06
102022-01-07
52022-01-08
32022-01-09
12022-01-10
12022-01-11
62022-01-12
42022-01-13
92022-01-14
102022-01-15
92022-01-16
52022-01-17
22022-01-18
22022-01-19
92022-01-20
82022-01-21
62022-01-22
62022-01-23
52022-01-24
42022-01-25
32022-01-26
32022-01-27
42022-01-28
22022-01-29
12022-01-30
12022-01-31

filtro 1

2021-12-22 hasta 2022-01-31
Jorge5
Lovemore3
Sydey4
Montgomery3
Alecia4
Nadia3
Ramu0
Marcar2
Sean4
Travor3

filtro 2

2022-01-01 a 2022-01-10
Jorge2
Lovemore0
Sydey1
Montgomery0
Alecia2
Nadia1
Ramu0
Marcar1
Sean1
Travor2

filtro 3

2022-01-10 hasta 2022-01-25
Jorge2
Lovemore2
Sydey0
Montgomery2
Alecia2
Nadia3
Ramu0
Marcar1
Sean3
Travor1

espero que eso sea lo suficientemente claro?

cualquier idea

gracias a mil

Ian

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Picture1.png

Contar acceso: =
IF( HASONEVALUE( Empleado[Nombre] ),
COUNTROWS('Acess Control' ) + 0
)

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

100%

thnks tanto

Syndicate_Admin
Administrator
Administrator

Picture1.png

Contar acceso: =
IF( HASONEVALUE( Empleado[Nombre] ),
COUNTROWS('Acess Control' ) + 0
)

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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

Top Kudoed Authors