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
alearner
Helper I
Helper I

Filtering data in one table based on data in another

Hi,

I am a newbie in Power BI and trying to learn. So need some help as t how to implement the below.

I have two tables which are connected with Product ID. One containing the sales of products for last 1 year and this keeps rolling and another historical table containing the list of Products unit price for the last 5 years.

I would like to create a line chart showing the Unit Price for only those 12 months for which I have sales and ignore the historical data. How can I achieve the same !!

3 REPLIES 3
alearner
Helper I
Helper I

Product IDProduct NameDateUnit Price
1a1/1/202010
1a2/1/2020

15

1a1/1/2022

30

1a2/1/2022

15

1a3/1/2022

20

Product IDDateSales
11/1/202225
210/20/202230
311/31/2022

50

112/20/2022

100

 

Above are the two sample tables and ofcourse I have the Date table also. I would like to create the trend line for Unit Price by Product for the time frame for which I have sales and ignore any historical data. Like I have sales only for the year 2022 so would like to ignore the Unit Price for the year 2020. 

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

@alearner 

 

Please share the sample tables here

 

Regards,

Ritesh

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.