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
SimonSeez
Helper III
Helper III

Ayuda con el uso de la tabla de dimensiones de fecha

Hola

Obtengo datos de mi base de datos SQL con Meses como encabezados de columna y los valores inferiores. Quiero realizar cálculos financieros basados en el tiempo, así que hice una tabla de dimensiones de fecha. (https://radacad.com/all-in-one-script-to-create-date-dimension-in-power-bi-using-power-query)

La pregunta es cómo conecto ambas tablas. Mi tabla SQL tiene este aspecto

Nombre de la unidad ? Enero ( Jan) Feb ? Mar (Mar) Abr ? Mayo de Junio ? XXX ? Diciembre

Saludos

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@SimonSeez , Despníte la tabla crea una fecha

fecha: "01-" & [Mes] & "-"& [Año]

O

fecha: "01-" & [Mes] & "-2020"

Mes que obtendrá de unpivoting

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@SimonSeez , Despníte la tabla crea una fecha

fecha: "01-" & [Mes] & "-"& [Año]

O

fecha: "01-" & [Mes] & "-2020"

Mes que obtendrá de unpivoting

Hello @amitchandak  

 

Thank you for your assistance with my previous question. I have another variant of the same problem. This time I have a much longer list of rows. Actually, about 2,000 customers with monthly figures of revenue generated. Would you still recommend unpivoting to enable me to get a single date column which I can connect to my calender table? 

 

See sample table 

 

Customer Name | Customer ID | Jan Revenue  | Feb Revenue | Mar Revenue | xxxxxxxx | Dec Rev 

 

Hope to read from you. 

 

Best Regards,

Simon 

Sí, todavía debe usar "Despivot Otras columnas"


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Muchas gracias @amitchandak

Esto resolvió el problema.

Saludos

Simon

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.