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

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.

Reply
Syndicate_Admin
Administrator
Administrator

Problema con la unión (selectcolumns

Tablemeasure = Union(
selectcolumns(Table A,"Opening_Date", Table A[Opening_Date]), 
selectcolumns(Table B,"Business_Date", Table B[Business_Date]), 
)

Creé una medida usando este formato anterior, pero cuando intento ponerlo en un objeto visual, obtengo el error a continuación. ¿Alguien tiene una idea de lo que podría estar haciendo mal?

U156531_0-1709066110752.png

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

Si necesita una lista de fechas para un objeto visual, cree una tabla calculada en lugar de una medida:

CombinedDatesTable = UNION(
    SELECTCOLUMNS(TableA, "Date", TableA[Opening_Date]),
    SELECTCOLUMNS(TableB, "Date", TableB[Business_Date])
)

entonces para la medida :

UniqueDateCount = DISTINCTCOUNT(UNION(SELECTCOLUMNS(TableA, "Date", TableA[Opening_Date]), SELECTCOLUMNS(TableB, "Date", TableB[Business_Date])))

Esto es lo que creé, pero solo obtengo la columna Material en la tabla resultante.

TableUnion = unión(Seleccionar columnas(«clase de material»,"Material", [Clase de material]),Seleccionar columnas('merge1',"Cantidad", [cantidad recibida para el año en curso]), Seleccionar columnas(«material_class» ,"Material", [CLASE DE MATERIAL] ) , Seleccionar columnas('RFID/Barcode Defectious Material Submittals',"Cantidad", [cantidad] ) )

¿Puedes compartir tu archivo pbix?

Su solución funcionó, solo tuve que adaptarla un poco a mi situación. Acepté su solución.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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