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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MarceloDF
Helper I
Helper I

Getting SUMX total row as a SUM of the SUMX values.

Hi, I have this data:

MarceloDF_0-1659419489244.png

This is a Matrix. So in the rows I have 2 dim tables (suppliers and products), then I have Stock for each product with the total of the supplier.
Then I have the % of each product regarding the total stock.

Then I have a measure with a divide of total sales and total stocks. (like an average)

And in the last measure (the one that I want to resolve) is this:

 
Cow price of 1kg  =
SUMX (
VALUES ( dimSupplier[supplier]),
[Average Measure] * [Percentage]
)


I want to show in the total, the sum of this values. But, of course, I'm receiving 36.71 * 100%, that is 36.71.
 
Thanks.
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@MarceloDF , what is a column in visual? If that supplier the above should work. If that product then you should use the product

 

Cow price of 1kg =
SUMX (
VALUES ( dimProduct[Product]),
[Average Measure] * [Percentage]
)

View solution in original post

2 REPLIES 2
MarceloDF
Helper I
Helper I

@amitchandak the columns are empty in the visuals but changing the measure from Suppliers to Products it works!

Thank you very much!

amitchandak
Super User
Super User

@MarceloDF , what is a column in visual? If that supplier the above should work. If that product then you should use the product

 

Cow price of 1kg =
SUMX (
VALUES ( dimProduct[Product]),
[Average Measure] * [Percentage]
)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors