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.
Hola a todos
Tengo 2 tablas A y B necesitan crear la tabla C de la A y B
En una tabla tengo 4 columnas
En la tabla B tengo 4 columnas
Para crear una tabla C Necesita datos distintos de 2 columnas de una tabla y datos distintos 2 columnas en la tabla B y unión de los datos.
datos de muestra
Tabla A | |||
EmpId | Fecha | servicio no | Móvil |
52 | 21/05/2020 | 1256 | 695845213 |
754 | 2/4/2020 | 5264 | 58964125 |
8569 | 11/2/2020 | 2563 | 5289654 |
8569 | 11/2/2020 | 2563 | 5289654 |
256 | 5/5/2020 | 8526 | 59641253 |
Tabla B | |||
EmpId | Fecha | rollo de | sal |
201 | 21/05/2020 | Null | 5 |
555 | 2/4/2020 | Null | 6 |
777 | 11/2/2020 | Null | 4 |
777 | 11/2/2020 | Null | 5 |
25 | 5/5/2020 | Null | 2 |
Necesidad de crear la Tabla C | |||
EmpId | Fecha | DateKey | EmpID+DateKey |
52 | 21/05/2020 | 21052020 | 5221052020 |
754 | 2/4/2020 | 242020 | 754242020 |
8569 | 11/2/2020 | 1122020 | 85691122020 |
256 | 5/5/2020 | 552020 | 256552020 |
201 | 21/05/2020 | 21052020 | 20121052020 |
555 | 2/4/2020 | 242020 | 555242020 |
777 | 11/2/2020 | 1122020 | 7771122020 |
25 | 5/5/2020 | 552020 | 25552020 |
¿Puede alguien ayudarme a crear un modelo tabular SSAS
Solved! Go to Solution.
puede intentar usar DAX para crear una nueva tabla
Table C =
VAR A=ADDCOLUMNS(SUMMARIZE('Table A','Table A'[EmpId ],'Table A'[Date ],"datekey",day('Table A'[Date ])&month('Table A'[Date ])&year('Table A'[Date ])),"empid+datekey",'Table A'[EmpId ]&[datekey])
VAR B=ADDCOLUMNS(SUMMARIZE('Table B','Table B'[EmpId ],'Table B'[Date ],"datekey",day('Table B'[Date ])&month('Table B'[Date ])&year('Table B'[Date ])),"empid+datekey",'Table B'[EmpId ]&[datekey])
return UNION(A,B)
Proud to be a Super User!
puede intentar usar DAX para crear una nueva tabla
Table C =
VAR A=ADDCOLUMNS(SUMMARIZE('Table A','Table A'[EmpId ],'Table A'[Date ],"datekey",day('Table A'[Date ])&month('Table A'[Date ])&year('Table A'[Date ])),"empid+datekey",'Table A'[EmpId ]&[datekey])
VAR B=ADDCOLUMNS(SUMMARIZE('Table B','Table B'[EmpId ],'Table B'[Date ],"datekey",day('Table B'[Date ])&month('Table B'[Date ])&year('Table B'[Date ])),"empid+datekey",'Table B'[EmpId ]&[datekey])
return UNION(A,B)
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |