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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
hitesh1607
Advocate II
Advocate II

DAX Row Level subtotals not appearing

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. 

3 REPLIES 3
tamerj1
Super User
Super User

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?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.