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
TcT85
Helper III
Helper III

2 visual outcome but with only 1 relationship between tables.

At the moment I have relationship between the columns Product.

I would like to get 2 report view visuals.

 

1 visual that has product in X axis that shows the quantity of each product produced. This works when I have relations ship with Product

 

2nd visual the XDate in X axis. when I try to display the qty per Month it will count the total qty for both months. I want to know the quantity per month.

 

How can I setup so that both these visuals work with only 1 relationship?

 

ProductXDateQTY
Red Toy2022-01-0155
Red Toy2022-01-0211
Red Toy2022-01-03515
Red Toy2022-01-04513
Red Toy2022-01-0553
Red Toy2022-01-0613
Red Toy2022-01-07113
Red Toy2022-01-08113
Red Toy2022-01-09112
Red Toy2022-01-10113
Red Toy2022-01-11113
Blue Toy2022-01-12113
Green Toy2022-01-13114
Green Toy2022-02-14115
Green Toy2022-02-15116
Green Toy2022-02-16117
Green Toy2022-02-17118
Green Toy2022-02-18119
Green Toy2022-02-19120
Yellow Toy2022-02-20121
Purple Toy2022-02-21122
Black Toy2022-02-22123
White Toy2022-02-23124

 

ProductSerial numberFaultyDate
Red Toy1234Defect2022-01-01
Red Toy1235Defect2022-01-01
Red Toy1236Defect2022-01-01
Red Toy1237Defect2022-01-01
Red Toy1238Defect2022-01-01
Red Toy1239Defect2022-01-01
Red Toy1240Defect2022-01-01
Red Toy1241Defect2022-01-10
Red Toy1242Defect2022-01-10
Red Toy1243Defect2022-01-10
Red Toy1244Defect2022-01-11
Green Toy1245Defect2022-02-16
Green Toy1246Defect2022-02-17
Green Toy1247Defect2022-02-18
Green Toy1248Defect2022-02-19

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @TcT85 ,

Sorry for late reply!
May I ask if this is the result you are looking for?

vjunyantmsft_0-1708326881705.png

Here is the relationship:

vjunyantmsft_1-1708326906322.png

And I create a measure:

Fauty = COUNT('Table (2)'[Faulty])

Put this measure into both visuals.

Best Regards,
Dino Tao
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
TcT85
Helper III
Helper III

Hi @Anonymous 

Here is a image where it gets wrong on the visualisation on the bottom.

It count the totalt amount of defects but is a input for every day.

I need to get how many defects there was for each day.

TcT85_0-1708068383483.png

 

Anonymous
Not applicable

Hi @TcT85 ,

Sorry for late reply!
May I ask if this is the result you are looking for?

vjunyantmsft_0-1708326881705.png

Here is the relationship:

vjunyantmsft_1-1708326906322.png

And I create a measure:

Fauty = COUNT('Table (2)'[Faulty])

Put this measure into both visuals.

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

Anonymous
Not applicable

Hi @TcT85 ,

I'm a bit confused because according to your description, the table below doesn't need to be used at all to accomplish the creation of your two visual objects, i.e., you don't need to use any relationships at all:

vjunyantmsft_0-1708049268060.png

See the example I provided:

vjunyantmsft_1-1708049294220.png
vjunyantmsft_2-1708049322279.png

vjunyantmsft_3-1708049334780.png


Even though you must have a relationship between your two tables, the relationship will not be used because both visual objects only need to use columns from one table.

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

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
Top Kudoed Authors