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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Selective filtering for two tables

I am new with Power BI and hope someone here could help me with the issue I have.

 

1) I have my Forecast table that includes forecast for JULY and AUGUST. Forecasts were made in May and June (FC-May & FC-June). 

 

2) I also have the Actual Sales table where I see the real sales for each item in JULY and AUGUST. Note that I forecasted 5 Papaya for AUGUST but instead 20 Grapefruit was sold without even being forecasted.

 

FORECAST TABLE (5 Papaya forecasted for AUGUST)

Forecast Creation Month

Sales Month

Product

Forecasted Sales

FC-May

JULY

Apple

10

FC-May

JULY

Orange

10

FC-May

AUGUST

Apple

10

FC-May

AUGUST

Orange

10

FC-June

JULY

Apple

20

FC-June

JULY

Orange

20

FC-June

AUGUST

Apple

20

FC-June

AUGUST

Orange

20

FC-June

AUGUST

Papaya

5

 

ACTUAL SALES TABLE (20 Grapefruit sold in AUGUST, no Papaya sold)

Sales Month

Product

Actual Sales

JULY

Apple

8

JULY

Orange

8

AUGUST

Apple

13

AUGUST

Orange

13

AUGUST

Grapefruit

20

 

My problem starts when I want to compare the total number of items in AUGUST from the Actual Sales table, with the forecast I made in June (FC-June). When I put Actual Sales and Forecasted Sales into a Clustered Column Chart and filter the Forecast Creation Month to FC-June I do not get the total sales of August any more because Grapefruit was not in the forecast.

 

Is it for example possible somehow to set a filter in my chart to only apply to one of the Values in the chart?

I would really appreciate if someone could help me out, many thanks!

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

Is this your expected output?

product.png

If so, you can refer my sample file: Selective filtering for two tables.pbix

If not, please kindly let me know.

 

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

Is this your expected output?

product.png

If so, you can refer my sample file: Selective filtering for two tables.pbix

If not, please kindly let me know.

 

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Great thanks a lot @v-yingjl for the example, I got it now!

parry2k
Super User
Super User

@Anonymous as a best practice, you should have another table with a unique list of foods, and then set relationships from that table with your these two tables and in visualization use fruits from this common dimensional table and sum from the respective table and everything will work.

 

Read this post for modeling

 

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.

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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