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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Kareem_Amr_IT
Frequent Visitor

Adding month to a year column for a calculation

Hello,

I have two sheets, one is sales, and the other is target sales. in the sales is a sales date with all its data, Day, Quarter and so on, but in the target sheet, only the target year is shown as 2020. My dilemma is that I want to create a line column chart showing the sales from the sales sheet vs the Target sales in the target sheet, per month. Of course, since there is no link between them or month in the target, the data is not working, like this: 

line chart.PNG

 

And here are the sheets: 

Sales:

 Sales.PNG

 

Target:

Target.PNG

 

My question is, how do I link the two properly or induce a month value from the sales table to the target table if that is applicable?

 

Thank you

2 REPLIES 2
Anonymous
Not applicable

Hi @Kareem_Amr_IT ,

 

I'm a little confused. What's the target for each month if you only have year in target target table, average?

 

Best Regards,

Jay

amitchandak
Super User
Super User

@Kareem_Amr_IT , I have two blogs and a couple of videos on this topics. But I think this should help

PowerBI Distributing/Allocating the Yearly Target(Convert to Daily Target): Measure ( Daily/YTD): Magic of CLOSINGBALANCEYEAR With TOTALYTD/DATESYTD: https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Yearly-Target-C...

 

Others:

Distributing/Allocating the Yearly Target(Convert to Daily Target): https://community.powerbi.com/t5/Community-Blog/Distributing-Allocating-the-Yearly-Target-Convert-to...

 

https://www.youtube.com/watch?v=yPQ9UV37LOU

https://www.youtube.com/watch?v=6lzYOXI5wfo

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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