Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello,
I've created a measure that multiplies TotEndingInventory (wish is a meassure) by TotStCost ( which is a measure as well) But, when I put that measure in a table, the grand total is performing its original function (that is TotEndingInventory * TotStandarCost instead of summarizing the individuals row values.
According with the screenshot below, the total of TotEndingInventoryVal column is $211 437, which is the result of TotEndingIventory * TotStCost, instead of $72 945, which is the SUM of the row values in this column...
Can anybody help me please?
Tks in advance.
Solved! Go to Solution.
Hi,
Try this
=IF(HASONEVALUE([SAPMaterial]),[TotEndingInvValue],SUMX(SUMMARIZE(VALUES([SAPMaterial]),[SAPMaterial],"Total",[TotEndingInvValue]),[Total]))
Hope this helps.
Hi,
Try this
=IF(HASONEVALUE([SAPMaterial]),[TotEndingInvValue],SUMX(SUMMARIZE(VALUES([SAPMaterial]),[SAPMaterial],"Total",[TotEndingInvValue]),[Total]))
Hope this helps.
It it working. Thank you so much
Hello @arcejames
Are the amounts that are feeding into your two measures [TotEndingInventory] and [TotStCost] in the same table as the SAPMaterial field?
I will assume this is the case and the table is called Sales.
You will want to use an iterator over your table to do the calc, something like
TotEndingInvVal2 = SUMX ( Sales, Sales[EndingInventory] * Sales[StCost])
Please note that the EndingInventory and StCost in my measure are the columns in the sales table, the ones you sum in your existing measure.
If I have missed the mark, please share a sample of your model so we can help further.
Can you please share your measures and/or a mock dataset?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
37 | |
35 |