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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
SimonSeez
Helper III
Helper III

Help with using Date Dimension Table

Hello, 

 

I get data from my SQL DB with Months as column headers and the values underneath. I want to perform financial calculations that are time based so I made a date dimension table. (https://radacad.com/all-in-one-script-to-create-date-dimension-in-power-bi-using-power-query)

 

The question is how do I connect both tables. My SQL Table looks like this 

 

Unit Name | Jan | Feb | Mar | Apr | May | June | XXX | Dec 

 

Best Regards,

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@SimonSeez , Unpivot the the table create a date

 

date = "01-" & [Month] & "-"& [Year]

 

or

date = "01-" & [Month] & "-2020"

 

Month you will get from unpivoting

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@SimonSeez , Unpivot the the table create a date

 

date = "01-" & [Month] & "-"& [Year]

 

or

date = "01-" & [Month] & "-2020"

 

Month you will get from unpivoting

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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

Yes, you still should use "Unpivot Other columns"


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

Thank you very much @amitchandak 

 

This solved the issue. 

 

Best Regards,

Simon

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.