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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Jbmolina93
Frequent Visitor

Join two tables with different number of rows and columns to one bar graph

I have two tables. One is "Sales" the other is sales "Goal". So sales have the "sale ID" which I want to count to show a monthly count of sales bar chart with a line showing the goal for that month. I also need to drill down to the month and show the sales per day in the month along with the line representing the goal divided by the days of that month. My problem is the data does not have the same columns. How would I fix this? Please and thank you.

GoalGoal

 

SalesSales

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Jbmolina93,

 

We need to first create common columns in the 2 tables to join them.

 

For Table 1 Create a Month_Year column:

 

Month_Year = 'Goal'[Date] & ", " & 'Goal'[Year]

 

For table 2:

 

Month_Year = FORMAT('Sales'[Date], "MMM, YYYY")

 

Then join these columns and you should be good to go.

I get an error when I try and join.

"The column with the name of 'Date' already exists in the 'Table' Table."

error.PNG

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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