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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
berryjohn
New Member

Compare Two Values Side by Side in Bar Chart

Hi,

 

I have two tables like below.

Table 1 (Target Sales):

 

Year       Target Sales Points

  1          1000

  2           800

  3           800

  4           700

  5           700

 

Table 2 (Actual Sales):

 

Sales Person ID    Year    Actual Sales Points

  1                         1       800

  1                         2      300

  2                         1       1050

  2                         2       850

  2                         3       800

  .

  .

  .

 

Now I need to compare Actual Sales against Target Sales for the selected Sales Person in a column / bar chart.

I added Year from table 1 on axis and Target Sales on values for a column / bar chart. When I add the Actual Sales Point from table 2, it is getting summed up(For example, for rep 1, it is summed up as 1100) and showing the same value for all 5 years.

 

I want to show the actual for each year against target sales points and in case if the actual does not exist for any of the 5 years, it should show blank. Please guide me to achieve this.

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

You need a common axis, so either you are missing a relationship between your Year columns or you need to create a separate Year table and relate it to both of your tables. Then use that common Year for your axis.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @berryjohn,

 

Have you tried the solution provided by @Greg_Deckler above? Does it work in your scenario? If it works, could you accept it as solution to close this thread?

 

If you still have any question on this issue, feel free to post here. Smiley Happy

 

Regards

Greg_Deckler
Community Champion
Community Champion

You need a common axis, so either you are missing a relationship between your Year columns or you need to create a separate Year table and relate it to both of your tables. Then use that common Year for your axis.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors