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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
seanpratt
Helper III
Helper III

No se puede conectar la tabla de pedidos a la tabla de calendario

Una situación extraña hoy en día. Parece que no puedo conectar mi tabla De pedidos a mi tabla de calendario. Quiero empezar a construir totales de ingresos (mensual, MTD, YTD, EY%) así que construí una tabla Calendar, la conecté a mi columna de fecha preferida dentro de mi tabla Orders (Fecha de creación) y comí crear medidas y visualizaciones y nada.

He adjuntado mi pbix aquí y se puede ver que tengo "Año" como mis filas y los ingresos (mi medida) como mi valor y es sólo una matriz en blanco.

¿Puede alguien por favor echar un vistazo y decirme dónde me equivoqué. Estoy seguro de que es una solución fácil, pero estoy girando mis ruedas.

Enlace

2 REPLIES 2
v-diye-msft
Community Support
Community Support

Hola @seanpratt

Si ha solucionado el problema por su cuenta, por favor comparta su solución. si los mensajes anteriores ayudan, por favor márquelo como una solución para ayudar a otros a encontrarlo más rápidamente. ¡Gracias!

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
jdbuchanan71
Super User
Super User

@seanpratt

Es porque tiene el tiempo incluido en su [Fecha de creación] por lo que la relación no está encontrando ninguna fila coincidente en la tabla Calendario.

2020-06-22_13-31-32.png

Quite el tiempo del campo y debería funcionar para usted.

Podrías quitarlo de un par de maneras.

CREATED DATE = 
COALESCE (
    DATE ( 
        YEAR ( ORDERS[ORIGINAL ORDER CREATED DATE] ), 
        MONTH ( ORDERS[ORIGINAL ORDER CREATED DATE] ), 
        DAY ( ORDERS[ORIGINAL ORDER CREATED DATE] ) 
    ),
    DATE ( 
        YEAR ( ORDERS[CREATED TIME] ), 
        MONTH ( ORDERS[CREATED TIME] ), 
        DAY ( ORDERS[CREATED TIME] ) 
    )
)

O

CREATED DATE = 
COALESCE (
    INT ( [ORIGINAL ORDER CREATED DATE] ),
    INT ( ORDERS[CREATED TIME] )
)

Si utiliza el enfoque INT, tendrá el cambio del tipo de datos hasta la fecha.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.