Forum Discussion
Sum problem in matrix table
- 7 years ago
Hi,
Try this measure
OPEX_ = SUMX(VALUES(Product_Group[Product_name]),[Per_Unit (main)]*[Deal#count]*-1)
Hope this helps.
You are welcome. I just checked - no numbers in the matrix have changed. Please recheck.
Dear Ashish_Mathur
When remove all filters OPEX amount is equal to 76.466.791 (with the formula [Per_Unit (main)]*[Deal#count]*-1)
After changing formula with the SUMX(VALUES(Product_Group[Product_name]),[Per_Unit (main)]*[Deal#count]*-1)
total OPEX amount equals 73.911.984
for checking please remove product group and segment filters.
Best Regards
- Ashish_Mathur7 years agoSuper User
Hi,
WIth all filters removed, I think the correct result should be 7,39,03,022.92. This is the measure i used
Measure = if(HASONEVALUE(Product_Group[Product_name]),[OPEX_],SUMX(SUMMARIZE(VALUES(Product_Group[Product_name]),Product_Group[Product_name],"ABCD",[OPEX_]),[ABCD]))
Please reconfirm
- OSS7 years agoHelper III
Actually correct result should be 76.466.791
Total Calculated_Opex is the my main amount. After dividing by product I get Per_unit price 47.79
Then again I want to multiply per_unit*count=OPEX
which should be the same amount with the calculated Opex.
However when I use [Per_Unit (main)]*[Deal#count] formula my total sum is correct, but sum for columns are wrong.
When I use your formula SUMX(VALUES(Product_Group[Product_name]),[Per_Unit (main)]*[Deal#count], the total some is wrong but sum for columns are correct.
Why my opex amount reduced with your formula?
- Ashish_Mathur7 years agoSuper User
Hi,
I think the correct answer should be 7,39,03,024. On the top right hand side of your visual, you will see 3 dots. Click on those 3 dots and select Export Data. Open the Excel file and create a Pivot Table. The total of the Grand Total column will be 7,39,03,024.