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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
y5famfnatudu
Resolver I
Resolver I

Show sum of subcategories rather than calculation

Hello, your help is so much appreciated.

 

I have a matrix that shows Procurement values, on the lowest level (products) calculations are totally right. However, the level above (Product Group) is showing unexpected values.

Here's an example:

y5famfnatudu_0-1731587486775.png

The Power BI can be found below:
PBIX File 

 

Thank you so much for your kind assistance

Best regards,

Simon

1 ACCEPTED SOLUTION
BeaBF
Super User
Super User

@y5famfnatudu Hi! you have to give the granularity in the measure, try with:

 

Procurement 12m Diff = SUMX(VALUES('Product'[Product Name]),
([Unit Price Current (Avg)] - [Unit Price 12M Ago (Avg)])  * [Total Quantity])
 
BeaBF_0-1731598790100.png

 

If it's ok, please accept the answer as solution!

BBF

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi,

The method BeaBF provided should be helpful.

Please view the DAX formula, if the DAX formula helps, please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Wisdom Wu

BeaBF
Super User
Super User

@y5famfnatudu Hi! you have to give the granularity in the measure, try with:

 

Procurement 12m Diff = SUMX(VALUES('Product'[Product Name]),
([Unit Price Current (Avg)] - [Unit Price 12M Ago (Avg)])  * [Total Quantity])
 
BeaBF_0-1731598790100.png

 

If it's ok, please accept the answer as solution!

BBF

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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