Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello,
I've 2 tables.
| ITEM | Qty |
| 1A | 8 |
| 2A | 4 |
| 3A | |
| 4A | 5 |
| 5A | |
| 6A | 6 |
| 7A | 6 |
Item | Qty |
| 1A | 15 |
2A | |
| 3A | |
| 4A | 14 |
| 5A | 51 |
| 6A | |
| 7A | 9 |
Expected Result: Consider only items, which has QTY data from both table. (like consider 1A, 4A and 7A only here).
Defect rate = SUM(Defect table (QTY))/ Sum(Item Receive table (QTY))
I need to project defect rate on the line and clustered coulmn chart. Please advise!
hi, @Anonymous
Create the relationship between Defect Data Table with Item Receive Data Table by Item field.
Then use DIVIDE Function to add a measure:
Defects = DIVIDE(SUM(Table16[Qty]),SUM(Table17[Qty]))
If not your case, please share your expected output.
Best Regards,
Lin
Hi @v-lili6-msft,
I already had an answer in table (by having filter: Qty (defect table) and Qty (Receive Table) is NOT BLANK) but to have it this defect rate by Vendor on line and bar chart, it's calculating total sum of QTY on both the table and showing a wrong result.
As shown in below image, I got the result in table (23.43 % is expected outcome) but not on the chart (05.16 % not the correct one).
Hope this help. Can you please advise?
hi, @Anonymous
Could you share your sample pbix file for us to have a test, It is difficult to find out the reason from the screenshot.
You can upload it to Dropbox and post the link here. Do mask sensitive data before uploading
Best Regards,
Lin
You should be able to do something like:
Measure =
VAR __table2 = FILTER('Table17',NOT(ISBLANK([Qty])))
VAR __table3 = ADDCOLUMNS(__table2,"__defects",SUMX(RELATEDTABLE('Table16'),[Defects]))
VAR __table4 = FILTER(__table3,NOT(ISBLANK([__defects])))
RETURN
DIVIDE(SUMX(__table4,[__defects]),SUMX(__table4,[Qty]),0)
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 29 | |
| 27 | |
| 24 | |
| 24 | |
| 18 |
| User | Count |
|---|---|
| 54 | |
| 50 | |
| 41 | |
| 33 | |
| 23 |