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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
jimenaaguilera
Frequent Visitor

Dimensiones empleados ID diferente

Que tal comunidad.

 

Tengo un detalle con unas tablas y sus relaciones en PowerBi donde no sé cuál sería la mejor forma de solucionarlo.

 

Mi situación es la siguiente:

Tengo un reporte para verificar las horas de entrada de los trabajadores, esta información viene de un reloj checador donde especifica el día y hora de entrada con el nombre del colaborador; para  esta base de datos ya utilizaba una tabla de usuarios que asigna un ID único a cada colaborador.

 

 Recientemente se agregó a este mismo reporte una base de datos donde se enlistan los permisos solicitados por los colaboradores, esta viene de Sharepoint y utilizo la información de los usuarios del sitio de SP como dimensión para separar por departamento, puesto, etc. Esta tabla de Sharepoint tiene los mismo nombres de empleados que aquella del reloj checador, pero les asigna IDs diferentes:

 

jimenaaguilera_0-1671128916731.png

Quiero poder relacionar la información del reloj checador y de mis permisos en sharepoint para poder determinar si un empleado llegó a la hora en que se pidió permiso o no, pero por esta situación no puedo filtrar por usuario. 

 

Pensé en hacer una tabla maestra que contenga los nombres de los empleados y el ID correspondiente a las distintas bases de datos pero creo implicaría mucho retrabajo al añadir a nuevos colaboradores.

 

¿Tienen alguna sugerencia?

2 REPLIES 2
jimenaaguilera
Frequent Visitor

Data bases:

CHECKINOUT: Date and time at which employees enter the company.

RC_Users: Data from all employees of the company, this is generated by the same system of the CHECKINOUT database. Has unique ID for each person.

 

SP_Permission: Date and times where employees request to leave the company for some personal or non-work related reason. This includes how much time each permission entails. (Sharepoint)

SP_Replenish: Here employees record which day and time they will do extra hours to replenish the time previously asked for as permission. This DB connects to SP_Permission through a unique ID for each permission. (Sharepoint)

SP_Users: Employee data, auto generated by Sharepoint. Has unique ID for each person. (Sharepoint)

Problem: RC_Users and SP_Users have pretty much the same data, but each has different IDs through which they connect to their specific dataset.

Is there an automated way to merge both User datasets? Or be able to connect CHECKINOUT with SP_Permission and SP_Replenish



Connections:

jimenaaguilera_0-1671206117844.png

jimenaaguilera_1-1671206126360.png

 

 

 

v-yangliu-msft
Community Support
Community Support

Hi  @jimenaaguilera ,

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. If convenient, provide a picture of the expected result and we can better understand the problem and help you.

 

Best Regards,

Liu Yang

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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