Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
I have two tables.
Product: Category, SubCategory, NtWeight
Sales: LineNo, Qty
I want to multiply NtWeight*qty but I am getting either wrong subtotals or if I use SelectedValue function then row-level details are fine but Subtotals are blank in matrix visual.
Please help.
Hi @hitesh1607
I guess you already have a relationship between both tables or otherwise you can easily create one. Then you can iterate over sales:
Total Weight =
SUMX ( Sales, Sales[Qty] * RELATED ( 'Product'[NtWeight] ) )
Hi
I used related in the first place. I am getting WeightNy (2.28) * Quantity (3104) = 18,889.80 (it should be 7077.12)
Hi @hitesh1607
Would you please clarify the issue further? Can you please share some screenshots about your data model or maybe any insensitive data from both tables? Can you please share the code that you used?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 12 | |
| 11 | |
| 10 |