Forum Discussion
Join/Merge Tables by Month
I have a table of monthly targets and a table of monthyl forecasts. I want to be able to display the data for both in one monthly bar chart so I'm trying to find a way to maybe merge the tables by their months but I can't quite figure it out, can anyone help?
jdam0074 As a best practice, add date dimension in your model and use it for and time intelligence calculations. Once the date dimension is added, mark it as a date table on table tools.
https://perytus.com/2020/05/22/create-a-basic-date-table-in-your-data-model-for-time-intelligence-calculations/connect both tables with date dimension and to visualize use column from date dimension and values from your fact tables.
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
2 Replies
- parry2kSuper User
jdam0074 As a best practice, add date dimension in your model and use it for and time intelligence calculations. Once the date dimension is added, mark it as a date table on table tools.
https://perytus.com/2020/05/22/create-a-basic-date-table-in-your-data-model-for-time-intelligence-calculations/connect both tables with date dimension and to visualize use column from date dimension and values from your fact tables.
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- Greg_DecklerCommunity Champion
jdam0074 - You could do that or just create a Months table and relate it to your other 2 tables. You could try merging them in Power Query. You could also use NATURALINNERJOIN in DAX. You could also use DISTINCT() to create your Months table.